fixed crash from invalid input

This commit is contained in:
lickthecheese 2020-02-01 17:32:54 -05:00
parent edf1478264
commit e06c1009c2
2 changed files with 5 additions and 1 deletions

View File

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