Skip to content
Snippets Groups Projects
Commit 997fb27a authored by Bruce Cowan's avatar Bruce Cowan
Browse files

Better error messages in general

parent 370fcc43
No related branches found
No related tags found
No related merge requests found
......@@ -22,8 +22,8 @@ class Unicode(BotPlugin):
try:
return ''.join([chr(int(i)) for i in args.split()])
except ValueError as e:
return "**Error**: {}".format(e)
except ValueError:
return "**Error**: Needs integers"
@botcmd
def unicode_lookup(self, message, args):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment