mirror of
https://github.com/nims11/IPod-Shuffle-4g.git
synced 2025-12-07 16:08:00 +09:00
Fix exception handling
This commit is contained in:
parent
13a6fdb89d
commit
9f47cf5587
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ def raises_unicode_error(str):
|
||||||
try:
|
try:
|
||||||
str.decode('utf-8').encode('latin-1')
|
str.decode('utf-8').encode('latin-1')
|
||||||
return False
|
return False
|
||||||
except UnicodeEncodeError, UnicodeDecodeError:
|
except (UnicodeEncodeError, UnicodeDecodeError):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def hash_error_unicode(item):
|
def hash_error_unicode(item):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue