mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-10 11:35:53 +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)
|
||||
if isinstance(item_types, str):
|
||||
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
|
||||
import json
|
||||
|
|
|
|||
Loading…
Reference in a new issue