diff options
Diffstat (limited to 'qutebrowser/browser/hints.py')
-rw-r--r-- | qutebrowser/browser/hints.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qutebrowser/browser/hints.py b/qutebrowser/browser/hints.py index 6cc4fb035..84474b6b0 100644 --- a/qutebrowser/browser/hints.py +++ b/qutebrowser/browser/hints.py @@ -1074,6 +1074,9 @@ class WordHinter: except OSError as e: error = "Word hints requires reading the file at {}: {}" raise HintingError(error.format(dictionary, str(e))) + except UnicodeDecodeError as e: + error = "Word hints expects the file at {} to be encoded as UTF-8: {}" + raise HintingError(error.format(dictionary, str(e))) def extract_tag_words( self, elem: webelem.AbstractWebElement |