From ae824fb2fc2770c84cc34c1956e4c76c8c972860 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Fri, 20 Oct 2023 23:32:40 +0545 Subject: 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 Commit-Queue: Mike Frysinger Tested-by: Mike Frysinger --- git_refs.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'git_refs.py') 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: try: fd = open(path) mtime = os.path.getmtime(path) - except IOError: - return except OSError: return try: -- cgit v1.2.3-54-g00ecf