[CalendarServer-changes] [9282] CalendarServer/branches/users/glyph/uuid-normalize/twistedcaldav/ directory/augment.py
source_changes at macosforge.org
source_changes at macosforge.org
Thu May 24 13:33:58 PDT 2012
Revision: 9282
http://trac.macosforge.org/projects/calendarserver/changeset/9282
Author: glyph at apple.com
Date: 2012-05-24 13:33:58 -0700 (Thu, 24 May 2012)
Log Message:
-----------
It's OK if we can't rewrite the augments file.
Modified Paths:
--------------
CalendarServer/branches/users/glyph/uuid-normalize/twistedcaldav/directory/augment.py
Modified: CalendarServer/branches/users/glyph/uuid-normalize/twistedcaldav/directory/augment.py
===================================================================
--- CalendarServer/branches/users/glyph/uuid-normalize/twistedcaldav/directory/augment.py 2012-05-24 20:33:55 UTC (rev 9281)
+++ CalendarServer/branches/users/glyph/uuid-normalize/twistedcaldav/directory/augment.py 2012-05-24 20:33:58 UTC (rev 9282)
@@ -109,8 +109,12 @@
new.uid = uid.upper()
remove.append(old)
add.append(new)
- yield self.removeAugmentRecords(remove)
- yield self.addAugmentRecords(add)
+ try:
+ yield self.removeAugmentRecords(remove)
+ yield self.addAugmentRecords(add)
+ except IOError:
+ # It's OK if we can't re-write the file.
+ pass
@inlineCallbacks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120524/8ab23b54/attachment-0001.html>
More information about the calendarserver-changes
mailing list