mirror of
https://github.com/beetbox/beets.git
synced 2025-12-13 12:02:44 +01:00
fix incorrect call to str.decode
This commit is contained in:
parent
74f14a7aeb
commit
109a13e6f9
1 changed files with 1 additions and 1 deletions
|
|
@ -115,7 +115,7 @@ def _safe_cast(out_type, val):
|
|||
return u''
|
||||
else:
|
||||
if isinstance(val, str):
|
||||
return val.decode('utf-8', errors='ignore')
|
||||
return val.decode('utf8', 'ignore')
|
||||
elif isinstance(val, unicode):
|
||||
return val
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue