Merge pull request #449 from benweatherman/develop

Don't bonk if .netrc isn't readable
This commit is contained in:
Kenneth Reitz
2012-02-21 13:55:50 -08:00
+3 -1
View File
@@ -50,7 +50,9 @@ def get_netrc_auth(url):
# Return with login / password
login_i = (0 if _netrc[0] else 1)
return (_netrc[login_i], _netrc[2])
except NetrcParseError:
except NetrcParseError, IOError:
# If there was a parsing error or a permissions issue reading the file,
# we'll just skip netrc auth
pass