diff options
Diffstat (limited to 'libmproxy/script')
-rw-r--r-- | libmproxy/script/script.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libmproxy/script/script.py b/libmproxy/script/script.py index a4ed3aba..55778851 100644 --- a/libmproxy/script/script.py +++ b/libmproxy/script/script.py @@ -88,6 +88,8 @@ class Script(object): Raises: ScriptException if there was an exception. """ + if self.ns is None: + raise ScriptException("Script not loaded.") f = self.ns.get(name) if f: try: |