From 58a8b5c5d99a9136713f438b6afb07c9075139a7 Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Thu, 13 Feb 2020 08:21:28 +0900 Subject: [PATCH] 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 Tested-by: David Pursehouse --- repo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repo b/repo index 3b3c1bf9..4ef0300f 100755 --- a/repo +++ b/repo @@ -597,7 +597,7 @@ def _InitHttp(): p = n.hosts[host] mgr.add_password(p[1], 'http://%s/' % host, p[0], p[2]) mgr.add_password(p[1], 'https://%s/' % host, p[0], p[2]) - except: + except Exception: pass handlers.append(urllib.request.HTTPBasicAuthHandler(mgr)) handlers.append(urllib.request.HTTPDigestAuthHandler(mgr))