fix reading secrets file

This commit is contained in:
Yann Leboulanger 2017-09-13 14:25:36 +02:00
parent eca11d2498
commit 1b4e856d80
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ def load_secrets(filename):
if type(secret) is str:
secrets.srs[acct][jid].remove((secret, verified))
secrets.srs[acct][jid].append((secret.encode('latin1'), verified))
except (KeyError, EOFError):
except (KeyError, EOFError, ImportError):
f.close()
secrets = Secrets(filename)