Explorar el Código

Catch another error.

tags/v0.2
Ben Kurtovic hace 8 años
padre
commit
8228f04c9f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      earwigbot/commands/crypt.py

+ 1
- 1
earwigbot/commands/crypt.py Ver fichero

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

Cargando…
Cancelar
Guardar