mirror of
https://gerrit.googlesource.com/git-repo
synced 2025-01-02 16:14:25 +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])
|
mgr.add_password(None, 'https://%s/' % host, p[0], p[2])
|
||||||
except netrc.NetrcParseError:
|
except netrc.NetrcParseError:
|
||||||
pass
|
pass
|
||||||
|
except IOError:
|
||||||
|
pass
|
||||||
handlers.append(urllib2.HTTPBasicAuthHandler(mgr))
|
handlers.append(urllib2.HTTPBasicAuthHandler(mgr))
|
||||||
|
|
||||||
if 'http_proxy' in os.environ:
|
if 'http_proxy' in os.environ:
|
||||||
|
Loading…
Reference in New Issue
Block a user