prevent Traceback when there is an empty secret file. Fixes #6752
This commit is contained in:
parent
bb0eb5a9eb
commit
caf9d69bfc
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ def load_secrets(filename):
|
|||
|
||||
try:
|
||||
secrets = pickle.load(f)
|
||||
except KeyError:
|
||||
except (KeyError, EOFError):
|
||||
f.close()
|
||||
secrets = Secrets(filename)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue