瀏覽代碼

Catch another error.

tags/v0.2
Ben Kurtovic 9 年之前
父節點
當前提交
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…
取消
儲存