diff options
author | Yann Leboulanger <asterix@lagaule.org> | 2011-01-13 00:47:36 +0300 |
---|---|---|
committer | Yann Leboulanger <asterix@lagaule.org> | 2011-01-13 00:47:36 +0300 |
commit | caf9d69bfcf233dc4a2a7f0d6cdcb5d87ec65b04 (patch) | |
tree | 28c077583d3c267d9af7ed229b8850ee942d8489 /src/secrets.py | |
parent | bb0eb5a9ebfd40312f2e103fffccfafa875a727f (diff) |
prevent Traceback when there is an empty secret file. Fixes #6752
Diffstat (limited to 'src/secrets.py')
-rw-r--r-- | src/secrets.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/secrets.py b/src/secrets.py index 17cb5b6e3..ff013d0ff 100644 --- a/src/secrets.py +++ b/src/secrets.py @@ -99,7 +99,7 @@ def load_secrets(filename): try: secrets = pickle.load(f) - except KeyError: + except (KeyError, EOFError): f.close() secrets = Secrets(filename) |