Skip to content

Commit

Permalink
Fix unicode error in import
Browse files Browse the repository at this point in the history
  • Loading branch information
msom committed Feb 3, 2015
1 parent c1c5ffb commit 3136c0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions docs/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ Changelog
- Use unicode for selectable fields. Fixes #29.
[msom]

- Fix unicode error in import.
[msom]

0.26 (2015-01-21)
~~~~~~~~~~~~~~~~~

Expand Down
2 changes: 1 addition & 1 deletion seantis/people/content/import_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def download_field_from_url(field, url):
for fieldtype, klass in downloadables.items():
if isinstance(field, fieldtype):
try:
image = klass(urlopen(url).read())
image = klass(urlopen(url.encode('utf-8')).read())
if -1 in image.getImageSize():
return None
else:
Expand Down

0 comments on commit 3136c0c

Please sign in to comment.