Commit 1b4e856d by Yann Leboulanger

fix reading secrets file

parent eca11d24
Pipeline #197 passed with stages
in 2 minutes 23 seconds
......@@ -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)
......
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 sign in to comment