[CalendarServer-changes] [4706] CalendarServer/branches/more-deferreds-4/twistedcaldav/method/ put_common.py
source_changes at macosforge.org
source_changes at macosforge.org
Thu Nov 5 09:29:28 PST 2009
Revision: 4706
http://trac.macosforge.org/projects/calendarserver/changeset/4706
Author: glyph at apple.com
Date: 2009-11-05 09:29:25 -0800 (Thu, 05 Nov 2009)
Log Message:
-----------
remember useful information about errors
Modified Paths:
--------------
CalendarServer/branches/more-deferreds-4/twistedcaldav/method/put_common.py
Modified: CalendarServer/branches/more-deferreds-4/twistedcaldav/method/put_common.py
===================================================================
--- CalendarServer/branches/more-deferreds-4/twistedcaldav/method/put_common.py 2009-11-05 04:14:57 UTC (rev 4705)
+++ CalendarServer/branches/more-deferreds-4/twistedcaldav/method/put_common.py 2009-11-05 17:29:25 UTC (rev 4706)
@@ -21,6 +21,7 @@
__all__ = ["StoreCalendarObjectResource"]
import os
+import sys
import types
import uuid
@@ -1120,6 +1121,8 @@
returnValue(response)
except Exception, err:
+ excType, excValue, excTraceback = sys.exc_info()
+
if reservation:
yield reservation.unreserve()
@@ -1139,4 +1142,4 @@
# Important - we have to raise the original exception again, we cannot just use plain
# "raise" here as we have inlineCallbacks in use and those blow away the re-raised
# exception
- raise err
+ raise excType, excValue, excTraceback
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20091105/fd85f29c/attachment.html>
More information about the calendarserver-changes
mailing list