Added better handling for OverflowError

This commit is contained in:
Jeremy Fincher 2003-03-31 10:18:40 +00:00
parent c599e9962b
commit 880e004abb

View File

@ -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))