mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
TypeError, not AttributeError on 3.3.
This commit is contained in:
+1
-1
@@ -639,7 +639,7 @@ def get_auth_from_url(url):
|
||||
|
||||
try:
|
||||
return (unquote(parsed.username), unquote(parsed.password))
|
||||
except AttributeError:
|
||||
except (AttributeError, TypeError):
|
||||
pass
|
||||
|
||||
return ('', '')
|
||||
|
||||
Reference in New Issue
Block a user