Try importing html5lib and log a warning if it fails

This commit is contained in:
Mathias Rav 2016-08-11 09:50:20 +02:00
parent 55fb426500
commit 6f2db07d76
1 changed files with 6 additions and 0 deletions

View File

@ -76,6 +76,12 @@ else:
from html.parser import HTMLParser
from html.entities import name2codepoint
try:
import html5lib
except ImportError:
logger.warn('html5lib not found, falling back to HTMLParser')
html5lib = None
if gpodder.ui.win32:
try:
import win32file