瀏覽代碼

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

Guillaume Ayoub 11 年之前
父節點
當前提交
a7700f9805
共有 1 個文件被更改,包括 1 次插入1 次删除
  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":