[CalendarServer-changes] [15482] CalendarServer/trunk/calendarserver/tap/util.py
source_changes at macosforge.org
source_changes at macosforge.org
Tue Mar 22 15:31:11 PDT 2016
Revision: 15482
http://trac.calendarserver.org//changeset/15482
Author: sagen at apple.com
Date: 2016-03-22 15:31:11 -0700 (Tue, 22 Mar 2016)
Log Message:
-----------
Don't try to retrieve APN topic for disabled protocols
Modified Paths:
--------------
CalendarServer/trunk/calendarserver/tap/util.py
Modified: CalendarServer/trunk/calendarserver/tap/util.py
===================================================================
--- CalendarServer/trunk/calendarserver/tap/util.py 2016-03-22 21:40:24 UTC (rev 15481)
+++ CalendarServer/trunk/calendarserver/tap/util.py 2016-03-22 22:31:11 UTC (rev 15482)
@@ -1377,6 +1377,9 @@
):
protoConfig = config.Notifications.Services.APNS[protocol]
+ if not protoConfig.Enabled:
+ continue
+
try:
getAPNTopicFromConfig(protocol, accountName, protoConfig)
except ValueError as e:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20160322/871a4f70/attachment.html>
More information about the calendarserver-changes
mailing list