diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-10-21 21:42:56 +0200 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-10-21 21:42:56 +0200 |
commit | fe43bd552aaacd649b0e00afada01d07ad8dae9a (patch) | |
tree | 6244f66250706ec0d4a7dae23e270aefc97b02dd /src/hydrilla/proxy/state_impl/base.py | |
parent | d4895218cf8a3a16b74f42c530d78106062cf95b (diff) | |
download | haketilo-hydrilla-fe43bd552aaacd649b0e00afada01d07ad8dae9a.tar.gz haketilo-hydrilla-fe43bd552aaacd649b0e00afada01d07ad8dae9a.zip |
[proxy] facilitate injecting non-payload script to all pages
Diffstat (limited to 'src/hydrilla/proxy/state_impl/base.py')
-rw-r--r-- | src/hydrilla/proxy/state_impl/base.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/hydrilla/proxy/state_impl/base.py b/src/hydrilla/proxy/state_impl/base.py index 7437d52..f8291d8 100644 --- a/src/hydrilla/proxy/state_impl/base.py +++ b/src/hydrilla/proxy/state_impl/base.py @@ -210,15 +210,15 @@ class HaketiloStateWithFields(st.HaketiloState): best_priority = policy.priority best_policy = policy except Exception as e: - return policies.ErrorBlockPolicy(error=e) + return policies.ErrorBlockPolicy(self.settings, error=e) if best_policy is not None: return best_policy - if self.get_settings().default_allow_scripts: - return policies.FallbackAllowPolicy() + if self.settings.default_allow_scripts: + return policies.FallbackAllowPolicy(self.settings) else: - return policies.FallbackBlockPolicy() + return policies.FallbackBlockPolicy(self.settings) @abstractmethod def import_items(self, malcontent_path: Path, repo_id: int = 1) -> None: |