mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Added better handling for OverflowError
This commit is contained in:
parent
c599e9962b
commit
880e004abb
@ -369,6 +369,8 @@ class FunCommands(callbacks.Privmsg):
|
|||||||
irc.reply(msg, '%s' % imag)
|
irc.reply(msg, '%s' % imag)
|
||||||
else:
|
else:
|
||||||
irc.reply(msg, '%s + %si' % (real, imag))
|
irc.reply(msg, '%s + %si' % (real, imag))
|
||||||
|
except OverflowError:
|
||||||
|
irc.reply(msg, 'I don\'t have that many fingers and toes!')
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
irc.reply(msg, debug.exnToString(e))
|
irc.reply(msg, debug.exnToString(e))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user