fstasis: Handle OverflowError gracefully

This commit is contained in:
nyuszika7h 2015-01-17 19:00:32 +01:00
parent 39e835fe60
commit c20512163e

View File

@ -5582,6 +5582,13 @@ def fstasis(cli, nick, chan, rest):
cli.notice(nick, err_msg)
return
except OverflowError:
if chan == nick:
pm(cli, nick, "That number is too big.")
else:
cli.notice(nick, "That number is too big.")
return
if amt < 0:
if chan == nick: