Skip to content

Commit

Permalink
Refs #9558 - Fix AttributeError: 'float' object has no attribute 'find'
Browse files Browse the repository at this point in the history
  • Loading branch information
avoinea committed Feb 1, 2013
1 parent eec2f24 commit 13fd934
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions eea/app/visualization/converter/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ def text_annotation(self, text, annotations=()):
if not name:
continue

if not isinstance(text, (str, unicode)):
text = repr(text)

if text.find(name) != -1:
return text.replace(name, ''), annotation.get('title', name)
return text, u''
Expand Down

0 comments on commit 13fd934

Please sign in to comment.