[CalendarServer-changes] [4079] CalendarServer/trunk/twistedcaldav/directory/cachingdirectory.py

source_changes at macosforge.org source_changes at macosforge.org
Fri Apr 24 08:16:54 PDT 2009


Revision: 4079
          http://trac.macosforge.org/projects/calendarserver/changeset/4079
Author:   sagen at apple.com
Date:     2009-04-24 08:16:52 -0700 (Fri, 24 Apr 2009)
Log Message:
-----------
Log a warning rather than raise an exception

Modified Paths:
--------------
    CalendarServer/trunk/twistedcaldav/directory/cachingdirectory.py

Modified: CalendarServer/trunk/twistedcaldav/directory/cachingdirectory.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/directory/cachingdirectory.py	2009-04-24 04:21:40 UTC (rev 4078)
+++ CalendarServer/trunk/twistedcaldav/directory/cachingdirectory.py	2009-04-24 15:16:52 UTC (rev 4079)
@@ -105,7 +105,7 @@
                         try:
                             del self.recordsIndexedBy[indexType][item]
                         except KeyError:
-                            raise AssertionError("Missing record index item")
+                            self.log_warn("Missing record index item; type: %s, item: %s" % (indexType, item))
                 else:
                     raise AssertionError("Data from record attribute must be str, list or tuple")
         
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20090424/fb010e46/attachment.html>


More information about the calendarserver-changes mailing list