diff --git a/earwigbot/commands/crypt.py b/earwigbot/commands/crypt.py index facfe1f..f88472d 100644 --- a/earwigbot/commands/crypt.py +++ b/earwigbot/commands/crypt.py @@ -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)