Commit 1b4e856d authored by Yann Leboulanger's avatar Yann Leboulanger

fix reading secrets file

parent eca11d24
......@@ -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):
secrets = Secrets(filename)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment