mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-10 20:22:36 +01:00
Debug: Fix @exn. Closes GH-492.
This commit is contained in:
parent
1e8dddaa6a
commit
63a082ff34
@ -127,7 +127,10 @@ class Debug(callbacks.Privmsg):
|
|||||||
|
|
||||||
Raises the exception matching <exception name>.
|
Raises the exception matching <exception name>.
|
||||||
"""
|
"""
|
||||||
exn = getattr(exceptions, name)
|
if isinstance(__builtins__, dict):
|
||||||
|
exn = __builtins__[name]
|
||||||
|
else:
|
||||||
|
exn = getattr(__builtins__, name)
|
||||||
raise exn, msg.prefix
|
raise exn, msg.prefix
|
||||||
exn = wrap(exn, ['text'])
|
exn = wrap(exn, ['text'])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user