diff --git a/sandbox/Debug/plugin.py b/sandbox/Debug/plugin.py index 67bc76851..8a6ae15d7 100644 --- a/sandbox/Debug/plugin.py +++ b/sandbox/Debug/plugin.py @@ -127,7 +127,10 @@ class Debug(callbacks.Privmsg): Raises the exception matching . """ - exn = getattr(exceptions, name) + if isinstance(__builtins__, dict): + exn = __builtins__[name] + else: + exn = getattr(__builtins__, name) raise exn, msg.prefix exn = wrap(exn, ['text'])