Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion twython/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ def unicode2utf8(text):
try:
if is_py2 and isinstance(text, str):
text = text.encode('utf-8')
except:
except (UnicodeEncodeError, AttributeError):
pass
return text

Expand Down