Skip to content

Commit

Permalink
fix incorrect call to str.decode
Browse files Browse the repository at this point in the history
  • Loading branch information
sampsyo committed Feb 5, 2012
1 parent 74f14a7 commit 109a13e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beets/mediafile.py
Expand Up @@ -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:
Expand Down

0 comments on commit 109a13e

Please sign in to comment.