From 7b947de1ee015ab4d981d34566becba8222931ec Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Fri, 23 Sep 2011 11:50:31 -0700 Subject: Ignore missing ~/.netrc Change-Id: Ifa6065d57a6cb11ad57ddd44bc88d9690fe234ab Signed-off-by: Shawn O. Pearce --- main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.py b/main.py index 858ed936..c5c71c36 100755 --- a/main.py +++ b/main.py @@ -281,6 +281,8 @@ def init_http(): mgr.add_password(None, 'https://%s/' % host, p[0], p[2]) except netrc.NetrcParseError: pass + except IOError: + pass handlers.append(urllib2.HTTPBasicAuthHandler(mgr)) if 'http_proxy' in os.environ: -- cgit v1.2.3-54-g00ecf