From e18e79d8202a58186d7376d491a2a922e2a9454f Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Fri, 24 Feb 2012 00:44:01 -0500 Subject: [PATCH] python3 fix --- requests/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requests/utils.py b/requests/utils.py index 106c7d89..f960d315 100644 --- a/requests/utils.py +++ b/requests/utils.py @@ -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