Browse Source

Don't crash when getting unknown events (fix #258)

Guillaume Ayoub 11 năm trước cách đây
mục cha
commit
a7700f9805
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      radicale/__init__.py

+ 1 - 1
radicale/__init__.py

@@ -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":