[CalendarServer-changes] [1551]
CalendarServer/trunk/twistedcaldav/method/put_common.py
source_changes at macosforge.org
source_changes at macosforge.org
Tue May 22 13:13:58 PDT 2007
Revision: 1551
http://trac.macosforge.org/projects/calendarserver/changeset/1551
Author: cdaboo at apple.com
Date: 2007-05-22 13:13:58 -0700 (Tue, 22 May 2007)
Log Message:
-----------
Handle invalid calendar data errors from dateutil to generate a proper HTTP error.
Modified Paths:
--------------
CalendarServer/trunk/twistedcaldav/method/put_common.py
Modified: CalendarServer/trunk/twistedcaldav/method/put_common.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/method/put_common.py 2007-05-22 19:11:59 UTC (rev 1550)
+++ CalendarServer/trunk/twistedcaldav/method/put_common.py 2007-05-22 20:13:58 UTC (rev 1551)
@@ -472,8 +472,8 @@
responsecode.FORBIDDEN,
NumberOfRecurrencesWithinLimits(PCDATAElement(str(ex.max_allowed)))
))
- except ValueError, e:
- log.err(str(e))
+ except (ValueError, TypeError), ex:
+ log.err("Cannot index calendar resource: %s" % (ex,))
raise HTTPError(ErrorResponse(responsecode.FORBIDDEN, (caldav_namespace, "valid-calendar-data")))
destination.writeDeadProperty(davxml.GETContentType.fromString("text/calendar"))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20070522/5332f17f/attachment.html
More information about the calendarserver-changes
mailing list