From 8228f04c9f9eb523ca34d6438405cb57b20f9d20 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sun, 13 Sep 2015 23:51:52 -0500 Subject: [PATCH] Catch another error. --- earwigbot/commands/crypt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)