Fix exception handling

This commit is contained in:
Andrey Mazo 2014-06-24 04:03:12 +04:00
parent 13a6fdb89d
commit 9f47cf5587

View file

@ -24,7 +24,7 @@ def raises_unicode_error(str):
try:
str.decode('utf-8').encode('latin-1')
return False
except UnicodeEncodeError, UnicodeDecodeError:
except (UnicodeEncodeError, UnicodeDecodeError):
return True
def hash_error_unicode(item):