raise an ScriptException when running unloaded scripts

This commit is contained in:
Maximilian Hils 2016-02-02 12:27:01 +01:00
parent f39e50c4db
commit bceeb4a291

View file

@ -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: