summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-08-04 12:12:24 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2014-08-04 12:12:24 (GMT)
commit8980bcea3d2a1c7d3349ee99ad9c8978cbcc75a3 (patch)
tree62df143aa77563812f53e20a0fef59aa1148089c
parent13661b09f90b461f5d8e0fd6f73d7639b09fbe9e (diff)
downloadpykolab-8980bcea3d2a1c7d3349ee99ad9c8978cbcc75a3.tar.gz
Return None if event status is not set
-rw-r--r--pykolab/xml/event.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pykolab/xml/event.py b/pykolab/xml/event.py
index 75b00ac..213e43e 100644
--- a/pykolab/xml/event.py
+++ b/pykolab/xml/event.py
@@ -512,7 +512,7 @@ class Event(object):
if status in self.status_map.keys():
return status
- return self._translate_value(status, self.status_map)
+ return self._translate_value(status, self.status_map) if status else None
def get_ical_sequence(self):
return str(self.event.sequence()) if self.event.sequence() else None