Преглед изворни кода

Catch another error.

tags/v0.2
Ben Kurtovic пре 8 година
родитељ
комит
8228f04c9f
1 измењених фајлова са 1 додато и 1 уклоњено
  1. +1
    -1
      earwigbot/commands/crypt.py

+ 1
- 1
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)

Loading…
Откажи
Сачувај