diff options
author | Florian Bruhin <me@the-compiler.org> | 2021-01-26 17:27:46 +0100 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2021-01-26 17:49:39 +0100 |
commit | 7576dc2719a65c72319d6e453372632e2729e907 (patch) | |
tree | 71383d071c3b6b7d5f1734dc991338aab59edadd /qutebrowser/browser/hints.py | |
parent | a5063283dee2da81c44e440d308e078242412f49 (diff) | |
download | qutebrowser-7576dc2719a65c72319d6e453372632e2729e907.tar.gz qutebrowser-7576dc2719a65c72319d6e453372632e2729e907.zip |
Get rid of IOError
It's an alias to OSError since Python 3.3:
https://docs.python.org/3/library/exceptions.html
https://www.python.org/dev/peps/pep-3151/
Diffstat (limited to 'qutebrowser/browser/hints.py')
-rw-r--r-- | qutebrowser/browser/hints.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qutebrowser/browser/hints.py b/qutebrowser/browser/hints.py index 4bf093646..f94e28157 100644 --- a/qutebrowser/browser/hints.py +++ b/qutebrowser/browser/hints.py @@ -1071,7 +1071,7 @@ class WordHinter: hints.discard(word[:i + 1]) hints.add(word) self.words.update(hints) - except IOError as e: + except OSError as e: error = "Word hints requires reading the file at {}: {}" raise HintingError(error.format(dictionary, str(e))) |