Ver a proveniência

Catch another error.

tags/v0.2
Ben Kurtovic há 8 anos
ascendente
cometimento
8228f04c9f
1 ficheiros alterados com 1 adições e 1 eliminações
  1. +1
    -1
      earwigbot/commands/crypt.py

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

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

Carregando…
Cancelar
Guardar