mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
simpler
This commit is contained in:
+4
-4
@@ -751,11 +751,11 @@ class Response(object):
|
||||
pass
|
||||
|
||||
# Try to fall back:
|
||||
try:
|
||||
if not content:
|
||||
if not content:
|
||||
try:
|
||||
content = unicode(content, encoding, errors='replace')
|
||||
except UnicodeError, TypeError:
|
||||
pass
|
||||
except UnicodeError, TypeError:
|
||||
pass
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user