summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Pursehouse <dpursehouse@collab.net>2020-02-13 08:21:28 +0900
committerDavid Pursehouse <dpursehouse@collab.net>2020-02-13 00:31:24 +0000
commit58a8b5c5d99a9136713f438b6afb07c9075139a7 (patch)
tree38149cd46ec50b43691e49d83192132af05b7dea
parent22dbfb99e5be6b1a82e7c09c042fa6055738436c (diff)
downloadgit-repo-58a8b5c5d99a9136713f438b6afb07c9075139a7.tar.gz
repo: Remove another usage of bare 'except'
Change-Id: I9195b40f5af7cbf74b47376a4708de82495f8fba Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/254696 Reviewed-by: Mike Frysinger <vapier@google.com> Tested-by: David Pursehouse <dpursehouse@collab.net>
-rwxr-xr-xrepo2
1 files changed, 1 insertions, 1 deletions
diff --git a/repo b/repo
index 3b3c1bf9..4ef0300f 100755
--- a/repo
+++ b/repo
@@ -597,7 +597,7 @@ def _InitHttp():
597 p = n.hosts[host] 597 p = n.hosts[host]
598 mgr.add_password(p[1], 'http://%s/' % host, p[0], p[2]) 598 mgr.add_password(p[1], 'http://%s/' % host, p[0], p[2])
599 mgr.add_password(p[1], 'https://%s/' % host, p[0], p[2]) 599 mgr.add_password(p[1], 'https://%s/' % host, p[0], p[2])
600 except: 600 except Exception:
601 pass 601 pass
602 handlers.append(urllib.request.HTTPBasicAuthHandler(mgr)) 602 handlers.append(urllib.request.HTTPBasicAuthHandler(mgr))
603 handlers.append(urllib.request.HTTPDigestAuthHandler(mgr)) 603 handlers.append(urllib.request.HTTPDigestAuthHandler(mgr))