1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-06-26 16:45:52 +00:00

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)