[CalendarServer-changes] [1707]
CalendarServer/branches/users/cdaboo/reserveduid-db-1672/
twistedcaldav/index.py
source_changes at macosforge.org
source_changes at macosforge.org
Fri Jul 20 18:12:42 PDT 2007
Revision: 1707
http://trac.macosforge.org/projects/calendarserver/changeset/1707
Author: cdaboo at apple.com
Date: 2007-07-20 18:12:41 -0700 (Fri, 20 Jul 2007)
Log Message:
-----------
Raise ReservationError instead of sqlite.Error.
Modified Paths:
--------------
CalendarServer/branches/users/cdaboo/reserveduid-db-1672/twistedcaldav/index.py
Modified: CalendarServer/branches/users/cdaboo/reserveduid-db-1672/twistedcaldav/index.py
===================================================================
--- CalendarServer/branches/users/cdaboo/reserveduid-db-1672/twistedcaldav/index.py 2007-07-21 00:26:48 UTC (rev 1706)
+++ CalendarServer/branches/users/cdaboo/reserveduid-db-1672/twistedcaldav/index.py 2007-07-21 01:12:41 UTC (rev 1707)
@@ -474,7 +474,10 @@
except sqlite.Error, e:
log.err("Unable to reserve UID: %s", (e,))
self._db_rollback()
- raise
+ raise ReservationError(
+ "Unable to reserve UID %s for calendar collection %s."
+ % (uid, self.resource)
+ )
def unreserveUID(self, uid):
"""
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20070720/9ab155e1/attachment.html
More information about the calendarserver-changes
mailing list