diff --git a/twython/api.py b/twython/api.py index 1e786ad..102aeeb 100644 --- a/twython/api.py +++ b/twython/api.py @@ -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