Skip to content

Commit

Permalink
simpler
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenneth Reitz committed Jan 22, 2012
1 parent 2c7e920 commit b14a244
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions requests/models.py
Expand Up @@ -751,11 +751,11 @@ def text(self):
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



Expand Down

0 comments on commit b14a244

Please sign in to comment.