python3 fix

This commit is contained in:
Kenneth Reitz
2012-02-24 00:44:01 -05:00
parent 7234c7240a
commit e18e79d820
+1 -1
View File
@@ -50,7 +50,7 @@ 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, IOError:
except (NetrcParseError, IOError):
# If there was a parsing error or a permissions issue reading the file,
# we'll just skip netrc auth
pass