summaryrefslogtreecommitdiffstats
path: root/main.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2023-10-20 23:32:40 +0545
committerLUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-10-21 00:56:10 +0000
commitae824fb2fc2770c84cc34c1956e4c76c8c972860 (patch)
tree4f8ec44e29c7401b99b3aef1b28a2104a0a86221 /main.py
parent034950b9eebacd6598ea518a0b254845bc806ab6 (diff)
downloadgit-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 'main.py')
-rwxr-xr-xmain.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.py b/main.py
index a1282851..bd8d5135 100755
--- a/main.py
+++ b/main.py
@@ -789,7 +789,7 @@ def init_http():
789 mgr.add_password(p[1], "https://%s/" % host, p[0], p[2]) 789 mgr.add_password(p[1], "https://%s/" % host, p[0], p[2])
790 except netrc.NetrcParseError: 790 except netrc.NetrcParseError:
791 pass 791 pass
792 except IOError: 792 except OSError:
793 pass 793 pass
794 handlers.append(_BasicAuthHandler(mgr)) 794 handlers.append(_BasicAuthHandler(mgr))
795 handlers.append(_DigestAuthHandler(mgr)) 795 handlers.append(_DigestAuthHandler(mgr))