Skip to content
Snippets Groups Projects
Commit caf9d69b authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

prevent Traceback when there is an empty secret file. Fixes #6752

parent bb0eb5a9
No related branches found
No related tags found
No related merge requests found
......@@ -99,7 +99,7 @@ def load_secrets(filename):
try:
secrets = pickle.load(f)
except KeyError:
except (KeyError, EOFError):
f.close()
secrets = Secrets(filename)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment