[CalendarServer-changes] [1059]
CalendarServer/trunk/twistedcaldav/static.py
source_changes at macosforge.org
source_changes at macosforge.org
Thu Jan 18 11:26:47 PST 2007
Revision: 1059
http://trac.macosforge.org/projects/calendarserver/changeset/1059
Author: cdaboo at apple.com
Date: 2007-01-18 11:26:46 -0800 (Thu, 18 Jan 2007)
Log Message:
-----------
Fix 500 error when doing a request on a non-existent user's outbox.
Modified Paths:
--------------
CalendarServer/trunk/twistedcaldav/static.py
Modified: CalendarServer/trunk/twistedcaldav/static.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/static.py 2007-01-18 16:57:31 UTC (rev 1058)
+++ CalendarServer/trunk/twistedcaldav/static.py 2007-01-18 19:26:46 UTC (rev 1059)
@@ -436,7 +436,10 @@
def provisionChild(self, name):
record = self.directory.recordWithShortName(self.recordType, name)
- assert record is not None, "No directory record %r of type %r" % (name, self.recordType)
+ if record is None:
+ log.msg("No directory record %r of type %r" % (name, self.recordType))
+ return None
+
child = CalendarHomeFile(self.fp.child(name).path, self, record)
if not child.exists():
# NOTE: provisionDefaultCalendars() returns a deferred, which we are ignoring.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20070118/6aa4706f/attachment.html
More information about the calendarserver-changes
mailing list