[CalendarServer-changes] [15359] CalendarServer/trunk/contrib/performance/loadtest/ical.py

source_changes at macosforge.org source_changes at macosforge.org
Thu Dec 3 06:53:55 PST 2015


Revision: 15359
          http://trac.calendarserver.org//changeset/15359
Author:   cdaboo at apple.com
Date:     2015-12-03 06:53:55 -0800 (Thu, 03 Dec 2015)
Log Message:
-----------
Fix for reading in old data.

Modified Paths:
--------------
    CalendarServer/trunk/contrib/performance/loadtest/ical.py

Modified: CalendarServer/trunk/contrib/performance/loadtest/ical.py
===================================================================
--- CalendarServer/trunk/contrib/performance/loadtest/ical.py	2015-12-03 14:53:37 UTC (rev 15358)
+++ CalendarServer/trunk/contrib/performance/loadtest/ical.py	2015-12-03 14:53:55 UTC (rev 15359)
@@ -1606,7 +1606,7 @@
         for calendar in data["calendars"]:
             calendar = Calendar.deserialize(calendar, self._events)
             self._calendars[calendar.url] = calendar
-        if data["notificationCollection"]:
+        if data.get("notificationCollection"):
             self._notificationCollection = NotificationCollection.deserialize(data, {})
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20151203/7b179a8e/attachment.html>


More information about the calendarserver-changes mailing list