summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShawn O. Pearce <sop@google.com>2011-09-23 11:50:31 -0700
committerShawn O. Pearce <sop@google.com>2011-09-23 11:50:31 -0700
commit7b947de1ee015ab4d981d34566becba8222931ec (patch)
tree891f01d5cac0a03042558a7893cdebec089ebe5e
parent6392c879454bd4fa0e770195ee8424e383d17df2 (diff)
downloadgit-repo-1.7.6.1.tar.gz
Ignore missing ~/.netrcv1.7.6.1
Change-Id: Ifa6065d57a6cb11ad57ddd44bc88d9690fe234ab Signed-off-by: Shawn O. Pearce <sop@google.com>
-rwxr-xr-xmain.py2
1 files changed, 2 insertions, 0 deletions
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():
281 mgr.add_password(None, 'https://%s/' % host, p[0], p[2]) 281 mgr.add_password(None, 'https://%s/' % host, p[0], p[2])
282 except netrc.NetrcParseError: 282 except netrc.NetrcParseError:
283 pass 283 pass
284 except IOError:
285 pass
284 handlers.append(urllib2.HTTPBasicAuthHandler(mgr)) 286 handlers.append(urllib2.HTTPBasicAuthHandler(mgr))
285 287
286 if 'http_proxy' in os.environ: 288 if 'http_proxy' in os.environ: