diff options
Diffstat (limited to 'git_config.py')
-rw-r--r-- | git_config.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git_config.py b/git_config.py index 1bde4795..6aa8d855 100644 --- a/git_config.py +++ b/git_config.py | |||
@@ -370,7 +370,7 @@ class GitConfig: | |||
370 | with Trace(": parsing %s", self.file): | 370 | with Trace(": parsing %s", self.file): |
371 | with open(self._json) as fd: | 371 | with open(self._json) as fd: |
372 | return json.load(fd) | 372 | return json.load(fd) |
373 | except (IOError, ValueError): | 373 | except (OSError, ValueError): |
374 | platform_utils.remove(self._json, missing_ok=True) | 374 | platform_utils.remove(self._json, missing_ok=True) |
375 | return None | 375 | return None |
376 | 376 | ||
@@ -378,7 +378,7 @@ class GitConfig: | |||
378 | try: | 378 | try: |
379 | with open(self._json, "w") as fd: | 379 | with open(self._json, "w") as fd: |
380 | json.dump(cache, fd, indent=2) | 380 | json.dump(cache, fd, indent=2) |
381 | except (IOError, TypeError): | 381 | except (OSError, TypeError): |
382 | platform_utils.remove(self._json, missing_ok=True) | 382 | platform_utils.remove(self._json, missing_ok=True) |
383 | 383 | ||
384 | def _ReadGit(self): | 384 | def _ReadGit(self): |