From 880e004abb591a165284b647cab9bd055fad48d3 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Mon, 31 Mar 2003 10:18:40 +0000 Subject: [PATCH] Added better handling for OverflowError --- plugins/FunCommands.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/FunCommands.py b/plugins/FunCommands.py index 26bd62cd9..0573a6e04 100644 --- a/plugins/FunCommands.py +++ b/plugins/FunCommands.py @@ -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))