aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/dump.py
diff options
context:
space:
mode:
Diffstat (limited to 'libmproxy/dump.py')
-rw-r--r--libmproxy/dump.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/libmproxy/dump.py b/libmproxy/dump.py
index cfc7c5da..88deb0d5 100644
--- a/libmproxy/dump.py
+++ b/libmproxy/dump.py
@@ -121,7 +121,8 @@ class DumpMaster(flow.FlowMaster):
not options.keepserving
)
- for script_argv in options.scripts:
+ scripts = options.scripts or []
+ for script_argv in scripts:
err = self.load_script(script_argv)
if err:
raise DumpError(err)