aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy
diff options
context:
space:
mode:
authorroot <skkaushik212@gmail.com>2020-03-07 23:03:06 +0530
committerroot <skkaushik212@gmail.com>2020-03-11 01:36:47 +0530
commit84e4d6d57534be5d5e12b2e1e6ed60d564b64e57 (patch)
tree015abb49a7b92ca90e4b0cf2ae1dcef9e1f45286 /mitmproxy
parente01f044c33aba51d9e5b6053e759b47594ad0855 (diff)
downloadmitmproxy-84e4d6d57534be5d5e12b2e1e6ed60d564b64e57.tar.gz
mitmproxy-84e4d6d57534be5d5e12b2e1e6ed60d564b64e57.tar.bz2
mitmproxy-84e4d6d57534be5d5e12b2e1e6ed60d564b64e57.zip
Options Exception in script
Diffstat (limited to 'mitmproxy')
-rw-r--r--mitmproxy/addons/script.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/mitmproxy/addons/script.py b/mitmproxy/addons/script.py
index 3b2568c9..0e6c0252 100644
--- a/mitmproxy/addons/script.py
+++ b/mitmproxy/addons/script.py
@@ -105,11 +105,14 @@ class Script:
# We're already running, so we have to explicitly register and
# configure the addon
ctx.master.addons.invoke_addon(self.ns, "running")
- ctx.master.addons.invoke_addon(
- self.ns,
- "configure",
- ctx.options.keys()
- )
+ try:
+ ctx.master.addons.invoke_addon(
+ self.ns,
+ "configure",
+ ctx.options.keys()
+ )
+ except exceptions.OptionsError as e:
+ script_error_handler(self.fullpath,e,str(e))
async def watcher(self):
last_mtime = 0