diff --git a/qutebrowser/browser/mhtml.py b/qutebrowser/browser/mhtml.py index 184465b89..0475651e4 100644 --- a/qutebrowser/browser/mhtml.py +++ b/qutebrowser/browser/mhtml.py @@ -37,7 +37,10 @@ from qutebrowser.utils import log, objreg, message, usertypes try: import cssutils -except ImportError: +except (ImportError, re.error): + # Catching re.error because cssutils in earlier releases (<= 1.0) is broken + # on Python 3.5 + # See https://bitbucket.org/cthedot/cssutils/issues/52 cssutils = None _File = collections.namedtuple('_File',