diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2023-10-20 23:32:40 +0545 |
---|---|---|
committer | LUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-10-21 00:56:10 +0000 |
commit | ae824fb2fc2770c84cc34c1956e4c76c8c972860 (patch) | |
tree | 4f8ec44e29c7401b99b3aef1b28a2104a0a86221 /git_refs.py | |
parent | 034950b9eebacd6598ea518a0b254845bc806ab6 (diff) | |
download | git-repo-ae824fb2fc2770c84cc34c1956e4c76c8c972860.tar.gz |
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>
Diffstat (limited to 'git_refs.py')
-rw-r--r-- | git_refs.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/git_refs.py b/git_refs.py index bf7aa4a1..237c15ae 100644 --- a/git_refs.py +++ b/git_refs.py | |||
@@ -107,8 +107,6 @@ class GitRefs: | |||
107 | try: | 107 | try: |
108 | fd = open(path) | 108 | fd = open(path) |
109 | mtime = os.path.getmtime(path) | 109 | mtime = os.path.getmtime(path) |
110 | except IOError: | ||
111 | return | ||
112 | except OSError: | 110 | except OSError: |
113 | return | 111 | return |
114 | try: | 112 | try: |