fixed invalid input crash

This commit is contained in:
lickthecheese 2020-02-04 11:48:26 -05:00
parent 8c250d7a69
commit 61b60a9124
1 changed files with 3 additions and 1 deletions

4
bot.py
View File

@ -39,8 +39,10 @@ class Circles(teambot.Handler):
if cmd in self.cmd:
try:
self.cmd[cmd](self,c,n,m)
except TypeError:
except BaseException as e:
self.say(c,n+": Usage: "+self.help[cmd])
print('error', e)
print(sys.exc_info())
try:
for i in self.raw:
self.raw[i](self,c,n,m)