Skip to content

Commit

Permalink
Merge pull request #658 from camptocamp/unicode_icon
Browse files Browse the repository at this point in the history
Fix encoding problem with icon path
  • Loading branch information
asaunier committed Aug 20, 2013
2 parents c8db8c4 + 9c1777b commit 77b69ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c2cgeoportal/views/entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def _get_child_layers_info(self, layer):
def _getIconPath(self, icon):
if not icon:
return None # pragma: no cover
icon = str(icon)
icon = unicode(icon)
# test full URL
if not icon[0:4] == 'http':
try:
Expand Down

0 comments on commit 77b69ed

Please sign in to comment.