mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +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):
|
def __str__(self):
|
||||||
return '%r timed out' % self.args[0]
|
return '%r timed out' % self.args[0]
|
||||||
|
|
||||||
class TestPlugin(callbacks.Privmsg):
|
class TestPlugin(callbacks.Plugin):
|
||||||
def eval(self, irc, msg, args):
|
def eval(self, irc, msg, args):
|
||||||
"""<text>
|
"""<text>
|
||||||
|
|
||||||
@ -83,6 +83,8 @@ class TestPlugin(callbacks.Privmsg):
|
|||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
irc.reply(repr(eval(' '.join(args))))
|
irc.reply(repr(eval(' '.join(args))))
|
||||||
|
except callbacks.ArgumentError:
|
||||||
|
raise
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
irc.reply(utils.exnToString(e))
|
irc.reply(utils.exnToString(e))
|
||||||
# Since we know we don't now need the Irc object, we just give None. This
|
# Since we know we don't now need the Irc object, we just give None. This
|
||||||
|
Loading…
Reference in New Issue
Block a user