aboutsummaryrefslogtreecommitdiff
path: root/src/hydrilla/proxy/state_impl
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-10-21 18:29:43 +0200
committerWojtek Kosior <koszko@koszko.org>2022-10-21 18:29:43 +0200
commit85a0cacb28b84005d5d034a53973153d49214723 (patch)
tree3839b70f196d28ef9db21add79be633f3847ffae /src/hydrilla/proxy/state_impl
parent3360fff8b25a60cc1f378b80692d2162e70dc142 (diff)
downloadhaketilo-hydrilla-85a0cacb28b84005d5d034a53973153d49214723.tar.gz
haketilo-hydrilla-85a0cacb28b84005d5d034a53973153d49214723.zip
[proxy] rework CSP manipulation
Diffstat (limited to 'src/hydrilla/proxy/state_impl')
-rw-r--r--src/hydrilla/proxy/state_impl/base.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/hydrilla/proxy/state_impl/base.py b/src/hydrilla/proxy/state_impl/base.py
index df3287b..7437d52 100644
--- a/src/hydrilla/proxy/state_impl/base.py
+++ b/src/hydrilla/proxy/state_impl/base.py
@@ -210,10 +210,7 @@ class HaketiloStateWithFields(st.HaketiloState):
best_priority = policy.priority
best_policy = policy
except Exception as e:
- return policies.ErrorBlockPolicy(
- builtin = True,
- error = e
- )
+ return policies.ErrorBlockPolicy(error=e)
if best_policy is not None:
return best_policy