Selaa lähdekoodia

Catch another error.

tags/v0.2
Ben Kurtovic 8 vuotta sitten
vanhempi
commit
8228f04c9f
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. +1
    -1
      earwigbot/commands/crypt.py

+ 1
- 1
earwigbot/commands/crypt.py Näytä tiedosto

@@ -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)

Ladataan…
Peruuta
Tallenna