Permalink
Browse files

fix encoding nightmare when setting the image path to JSON fails

  • Loading branch information...
1 parent 6a9427d commit 585cc5f2d0db35f1a388b2ce3ec2373d386663a6 @MartijnKaijser MartijnKaijser committed Nov 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 default.py
View
@@ -496,7 +496,7 @@ def _download_art(self, art_type, filename, targetdirs, msg):
else:
item['filename'] = filename
for targetdir in item['targetdirs']:
- item['localfilename'] = os.path.join(targetdir, item['filename'])
+ item['localfilename'] = os.path.join(targetdir, item['filename']).encode('utf-8')
break
# Continue

0 comments on commit 585cc5f

Please sign in to comment.