mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 03:02:52 +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>.
|
||||
"""
|
||||
exn = getattr(exceptions, name)
|
||||
if isinstance(__builtins__, dict):
|
||||
exn = __builtins__[name]
|
||||
else:
|
||||
exn = getattr(__builtins__, name)
|
||||
raise exn, msg.prefix
|
||||
exn = wrap(exn, ['text'])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user