diff options
author | Florian Bruhin <me@the-compiler.org> | 2022-07-05 16:07:50 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2022-07-05 16:07:50 +0200 |
commit | 991cf1e8baee1a2365c1e2e81f92ce348344871c (patch) | |
tree | 8724a977d438672a22a7a76c8a33283a58405956 /qutebrowser/components | |
parent | a16aa959bbc81ddb8ed8f2b945be2cf10251fee8 (diff) | |
download | qutebrowser-991cf1e8baee1a2365c1e2e81f92ce348344871c.tar.gz qutebrowser-991cf1e8baee1a2365c1e2e81f92ce348344871c.zip |
Handle OSError from adblock
When the file is e.g. unreadable, .is_file() will work, but this step will fail.
Diffstat (limited to 'qutebrowser/components')
-rw-r--r-- | qutebrowser/components/braveadblock.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qutebrowser/components/braveadblock.py b/qutebrowser/components/braveadblock.py index 977aa3ef2..94dfb547c 100644 --- a/qutebrowser/components/braveadblock.py +++ b/qutebrowser/components/braveadblock.py @@ -267,6 +267,8 @@ class BraveAdBlocker: except DeserializationError: message.error("Reading adblock filter data failed (corrupted data?). " "Please run :adblock-update.") + except OSError as e: + message.error(f"Reading adblock filter data failed: {e}") elif ( config.val.content.blocking.adblock.lists and not self._has_basedir |