Don't crash when getting unknown events (fix #258)
This commit is contained in:
parent
2c4b335fad
commit
a7700f9805
@ -414,7 +414,7 @@ class Application(object):
|
||||
|
||||
if item_name:
|
||||
# Get collection item
|
||||
item = collection.items[item_name]
|
||||
item = collection.items.get(item_name)
|
||||
if item:
|
||||
items = [item]
|
||||
if collection.resource_type == "calendar":
|
||||
|
Loading…
Reference in New Issue
Block a user