Fix UnboundLocalError
This commit is contained in:
parent
39b34b2f52
commit
eea6ccb573
@ -133,6 +133,9 @@ def _comp_match(item, filter_, scope="collection"):
|
|||||||
for component in item.components():
|
for component in item.components():
|
||||||
if component.name in ("VTODO", "VEVENT", "VJOURNAL"):
|
if component.name in ("VTODO", "VEVENT", "VJOURNAL"):
|
||||||
tag = component.name
|
tag = component.name
|
||||||
|
break
|
||||||
|
else:
|
||||||
|
return False
|
||||||
if filter_length == 0:
|
if filter_length == 0:
|
||||||
# Point #1 of rfc4791-9.7.1
|
# Point #1 of rfc4791-9.7.1
|
||||||
return filter_.get("name") == tag
|
return filter_.get("name") == tag
|
||||||
|
Loading…
Reference in New Issue
Block a user