mirror of
https://gerrit.googlesource.com/git-repo
synced 2025-04-08 14:09:27 +00:00
Ignore missing ~/.netrc
Change-Id: Ifa6065d57a6cb11ad57ddd44bc88d9690fe234ab Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
parent
6392c87945
commit
7b947de1ee
2
main.py
2
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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user