From 0c6fc43aa7c3d528a7dc0a39c18674ad8a39f706 Mon Sep 17 00:00:00 2001 From: Serge Noiraud Date: Sun, 14 Feb 2010 21:23:50 +0000 Subject: [PATCH] GeoView : replace problem when some place fields are empty. svn: r14375 --- src/plugins/view/geoview.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/plugins/view/geoview.py b/src/plugins/view/geoview.py index 11f1c427a..3d1a92028 100644 --- a/src/plugins/view/geoview.py +++ b/src/plugins/view/geoview.py @@ -268,8 +268,11 @@ def _escape(text): """ return the text with some characters translated : " & """ - text = text.replace('&','\\&') - text = text.replace('"','\\"') + try: + text = text.replace('&','\\&') + text = text.replace('"','\\"') + except: # pylint: disable-msg=W0704 + pass # pylint: disable-msg=W0702 return text #-------------------------------------------------------------------------