diff options
author | David Pursehouse <dpursehouse@collab.net> | 2020-02-13 08:21:28 +0900 |
---|---|---|
committer | David Pursehouse <dpursehouse@collab.net> | 2020-02-13 00:31:24 +0000 |
commit | 58a8b5c5d99a9136713f438b6afb07c9075139a7 (patch) | |
tree | 38149cd46ec50b43691e49d83192132af05b7dea | |
parent | 22dbfb99e5be6b1a82e7c09c042fa6055738436c (diff) | |
download | git-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-x | repo | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)) |