Fix crash on empty values

This commit is contained in:
Markus Unterwaditzer 2015-08-21 20:11:44 +02:00
parent 213cb40480
commit 57b1ccdea5

View File

@ -247,7 +247,7 @@ class Collection(ical.Collection):
for prop in db_properties:
self.session.delete(prop)
for name, value in properties.items():
prop = DBProperty(name=name, value=value,
prop = DBProperty(name=name, value=value or '',
collection_path=self.path)
self.session.add(prop)