cleanup: convert exceptions to OSError

In Python 3, these exceptions were merged into OSError, so switch
everything over to that.

Change-Id: If876a28b692de5aa5c62a3bdc8c000793ce52c63
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/390376
Reviewed-by: Aravind Vasudevan <aravindvasudev@google.com>
Commit-Queue: Mike Frysinger <vapier@google.com>
Tested-by: Mike Frysinger <vapier@google.com>
This commit is contained in:
Jason R. Coombs
2023-10-20 23:32:40 +05:45
committed by LUCI
parent 034950b9ee
commit ae824fb2fc
7 changed files with 19 additions and 22 deletions

View File

@ -107,8 +107,6 @@ class GitRefs:
try:
fd = open(path)
mtime = os.path.getmtime(path)
except IOError:
return
except OSError:
return
try: