fstasis: Handle OverflowError gracefully
This commit is contained in:
parent
39e835fe60
commit
c20512163e
@ -5582,6 +5582,13 @@ def fstasis(cli, nick, chan, rest):
|
|||||||
cli.notice(nick, err_msg)
|
cli.notice(nick, err_msg)
|
||||||
|
|
||||||
return
|
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 amt < 0:
|
||||||
if chan == nick:
|
if chan == nick:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user