mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +01:00
Needed to re-raise ArgumentError in order to prevent a spurious test failure.
This commit is contained in:
parent
90c000793d
commit
ada52c729d
@ -73,7 +73,7 @@ class TimeoutError(AssertionError):
|
||||
def __str__(self):
|
||||
return '%r timed out' % self.args[0]
|
||||
|
||||
class TestPlugin(callbacks.Privmsg):
|
||||
class TestPlugin(callbacks.Plugin):
|
||||
def eval(self, irc, msg, args):
|
||||
"""<text>
|
||||
|
||||
@ -83,6 +83,8 @@ class TestPlugin(callbacks.Privmsg):
|
||||
"""
|
||||
try:
|
||||
irc.reply(repr(eval(' '.join(args))))
|
||||
except callbacks.ArgumentError:
|
||||
raise
|
||||
except Exception, e:
|
||||
irc.reply(utils.exnToString(e))
|
||||
# Since we know we don't now need the Irc object, we just give None. This
|
||||
|
Loading…
Reference in New Issue
Block a user