fixed crash from invalid input
This commit is contained in:
parent
edf1478264
commit
e06c1009c2
Binary file not shown.
|
@ -86,7 +86,11 @@ def circle(self, c,n,m):
|
|||
self.say(c, 'Invalid input, do {}help circle to see syntax'.format(self.prefix))
|
||||
return
|
||||
t = gettype(m[0])
|
||||
m = float(m[0][:-1])
|
||||
try:
|
||||
m = float(m[0][:-1])
|
||||
except:
|
||||
self.say(c, 'Invalid input, do {}help circle to see syntax'.format(self.prefix))
|
||||
return
|
||||
self.say(c, ops[o](self, t, m))
|
||||
|
||||
def init(self):
|
||||
|
|
Loading…
Reference in New Issue