瀏覽代碼

Fixed a bug when altering the only event on a calendar

Ronan Dunklau 15 年之前
父節點
當前提交
47815347fb
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      radicale/ical.py

+ 1 - 1
radicale/ical.py

@@ -217,7 +217,7 @@ class Calendar(object):
         headers = headers or self.headers or (
             Header("PRODID:-//Radicale//NONSGML Radicale Server//EN"),
             Header("VERSION:2.0"))
-        items = items or self.items
+        items = items if items is not None else self.items
 
         # Create folder if absent
         if not os.path.exists(os.path.dirname(self.path)):