mirror of
https://github.com/vee1e/mitmproxy.git
synced 2026-09-05 12:17:21 +00:00
raise an ScriptException when running unloaded scripts
This commit is contained in:
parent
f39e50c4db
commit
bceeb4a291
1 changed files with 2 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue