diff options
Diffstat (limited to 'git_config.py')
-rw-r--r-- | git_config.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/git_config.py b/git_config.py index a2a739a4..d33c3b12 100644 --- a/git_config.py +++ b/git_config.py | |||
@@ -236,6 +236,9 @@ class GitConfig(object): | |||
236 | return cPickle.load(fd) | 236 | return cPickle.load(fd) |
237 | finally: | 237 | finally: |
238 | fd.close() | 238 | fd.close() |
239 | except EOFError: | ||
240 | os.remove(self._pickle) | ||
241 | return None | ||
239 | except IOError: | 242 | except IOError: |
240 | os.remove(self._pickle) | 243 | os.remove(self._pickle) |
241 | return None | 244 | return None |