This commit is contained in:
Kenneth Reitz
2012-01-21 22:57:24 -05:00
parent 2c7e920298
commit b14a244ab4
+4 -4
View File
@@ -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