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): return cPickle.load(fd) finally: fd.close() + except EOFError: + os.remove(self._pickle) + return None except IOError: os.remove(self._pickle) return None