summaryrefslogtreecommitdiff
path: root/qutebrowser/extensions
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2021-01-28 14:54:40 +0100
committerFlorian Bruhin <me@the-compiler.org>2021-01-28 15:14:09 +0100
commitf5a409aa9f0b59f3bbb3e23bcf84e4a05c829858 (patch)
tree19c6c0148192f3472d282cfda2aeff9d350ebf21 /qutebrowser/extensions
parent54bcdc1eefa86cc20790973d6997b60c3bba884c (diff)
downloadqutebrowser-f5a409aa9f0b59f3bbb3e23bcf84e4a05c829858.tar.gz
qutebrowser-f5a409aa9f0b59f3bbb3e23bcf84e4a05c829858.zip
Ignore stale adblock.py component
It looks like some setups (and even packages, apparently?!) still ship adblock.py despite it not being a part of the release. This then causes a NoOptionError because adblock.py tries to access content.host_blocking which doesn't exist anymore. Likely this will resolve over time - but until that's the case, let's just explicitly block that component even if it exists.
Diffstat (limited to 'qutebrowser/extensions')
-rw-r--r--qutebrowser/extensions/loader.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/qutebrowser/extensions/loader.py b/qutebrowser/extensions/loader.py
index 297f1b108..9b704c94d 100644
--- a/qutebrowser/extensions/loader.py
+++ b/qutebrowser/extensions/loader.py
@@ -108,6 +108,11 @@ def _walk_normal() -> Iterator[ExtensionInfo]:
onerror=_on_walk_error):
if ispkg:
continue
+ if name == 'qutebrowser.components.adblock':
+ # WORKAROUND for packaging issues where the old adblock.py file is still
+ # lingering around.
+ log.extensions.debug("Ignoring stale 'adblock' component")
+ continue
yield ExtensionInfo(name=name)