mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-26 20:59:27 +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)
|
||||
else:
|
||||
irc.reply(msg, '%s + %si' % (real, imag))
|
||||
except OverflowError:
|
||||
irc.reply(msg, 'I don\'t have that many fingers and toes!')
|
||||
except Exception, e:
|
||||
irc.reply(msg, debug.exnToString(e))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user