changeset 147:8cc1f83d32ee

Description may be not set Avoid error if the description is not set
author Björn Ricks <bjoern.ricks@intevation.de>
date Thu, 15 Nov 2012 13:00:13 +0100
parents bb70dde875fd
children f0a2beb17f9b
files getan/project.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/getan/project.py	Tue Nov 13 13:13:28 2012 +0100
+++ b/getan/project.py	Thu Nov 15 13:00:13 2012 +0100
@@ -73,7 +73,7 @@
 
         # carefully handle non unicode string
         # urwid seems to have some issue with plain str
-        if not isinstance(self.desc, unicode):
+        if self.desc and not isinstance(self.desc, unicode):
             self.desc = unicode(self.desc, locale.getpreferredencoding())
 
     def duration(self):
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)