Browse Source

Catch another error.

tags/v0.2
Ben Kurtovic 8 years ago
parent
commit
8228f04c9f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      earwigbot/commands/crypt.py

+ 1
- 1
earwigbot/commands/crypt.py View File

@@ -82,5 +82,5 @@ class Crypt(Command):
self.reply(data, cipher.encrypt(text).encode("hex"))
else:
self.reply(data, cipher.decrypt(text.decode("hex")))
except ValueError as error:
except (ValueError, TypeError) as error:
self.reply(data, error.message)

Loading…
Cancel
Save