[CalendarServer-changes] [2748] CalendarServer/trunk/twistedcaldav/directory/aggregate.py
source_changes at macosforge.org
source_changes at macosforge.org
Mon Jul 21 16:16:46 PDT 2008
Revision: 2748
http://trac.macosforge.org/projects/calendarserver/changeset/2748
Author: wsanchez at apple.com
Date: 2008-07-21 16:16:45 -0700 (Mon, 21 Jul 2008)
Log Message:
-----------
Cope with missiong sudoers service
Modified Paths:
--------------
CalendarServer/trunk/twistedcaldav/directory/aggregate.py
Modified: CalendarServer/trunk/twistedcaldav/directory/aggregate.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/directory/aggregate.py 2008-07-21 21:21:37 UTC (rev 2747)
+++ CalendarServer/trunk/twistedcaldav/directory/aggregate.py 2008-07-21 23:16:45 UTC (rev 2748)
@@ -106,7 +106,11 @@
raise UnknownRecordTypeError(recordType)
def _query(self, query, recordType, *args):
- service = self.serviceForRecordType(recordType)
+ try:
+ service = self.serviceForRecordType(recordType)
+ except UnknownRecordTypeError:
+ return None
+
return getattr(service, query)(
recordType[len(service.recordTypePrefix):],
*[a[len(service.recordTypePrefix):] for a in args]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20080721/6c6a0dc7/attachment.html
More information about the calendarserver-changes
mailing list