mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
Fix item_types parser
This commit is contained in:
parent
448dc9b6b7
commit
24b492c610
1 changed files with 3 additions and 1 deletions
|
|
@ -489,7 +489,9 @@ class CaldavStorage(DavStorage):
|
||||||
super(CaldavStorage, self).__init__(**kwargs)
|
super(CaldavStorage, self).__init__(**kwargs)
|
||||||
if isinstance(item_types, str):
|
if isinstance(item_types, str):
|
||||||
orig_item_types = item_types
|
orig_item_types = item_types
|
||||||
item_types = [x.strip() for x in item_types.split(',')]
|
item_types = list(filter(
|
||||||
|
bool, (x.strip() for x in item_types.split(','))
|
||||||
|
))
|
||||||
|
|
||||||
# XXX: Deprecation
|
# XXX: Deprecation
|
||||||
import json
|
import json
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue