From 13fd9340d224cc91a3fa15659a26d03932509958 Mon Sep 17 00:00:00 2001 From: Alin Voinea Date: Fri, 1 Feb 2013 19:24:53 +0200 Subject: [PATCH] Refs #9558 - Fix AttributeError: 'float' object has no attribute 'find' --- eea/app/visualization/converter/converter.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eea/app/visualization/converter/converter.py b/eea/app/visualization/converter/converter.py index 9a8bf3d..340d432 100644 --- a/eea/app/visualization/converter/converter.py +++ b/eea/app/visualization/converter/converter.py @@ -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''