summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2018-06-20 15:29:09 +0000
committerAleksander Machniak <machniak@kolabsys.com>2018-06-20 15:29:09 +0000
commitcadaac359f60fde05f4d94ebe6759ac63f5d4fac (patch)
tree5b2b176ebc042830ba28849763d32433b6b690bb
parent442f0e8f674677280b748386b2d5640058684e3d (diff)
downloadpykolab-cadaac359f60fde05f4d94ebe6759ac63f5d4fac.tar.gz
Don't fail on iTips with no ORGANIZER property (Bifrost#T114576)
-rw-r--r--pykolab/itip/__init__.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/pykolab/itip/__init__.py b/pykolab/itip/__init__.py
index 0172c09..925fede 100644
--- a/pykolab/itip/__init__.py
+++ b/pykolab/itip/__init__.py
@@ -106,9 +106,11 @@ def objects_from_message(message, objnames, methods=None):
itip['duration'] = c['duration'].dt
itip['end'] = itip['start'] + c['duration'].dt
- itip['organizer'] = c['organizer']
+ if (c.has_key('organizer')):
+ itip['organizer'] = c['organizer']
- itip['attendees'] = c['attendee']
+ if (c.has_key('attendee')):
+ itip['attendees'] = c['attendee']
if itip.has_key('attendees') and not isinstance(itip['attendees'], list):
itip['attendees'] = [c['attendee']]