Commit 6c186588 authored by Nicolas Delaby's avatar Nicolas Delaby

Provide default value to avoid AttributeError when value is undefined

parent 5f7772c5
...@@ -1165,7 +1165,7 @@ class SynchronizationTool(BaseTool): ...@@ -1165,7 +1165,7 @@ class SynchronizationTool(BaseTool):
""" """
response = None #check if subsync replies to this messages response = None #check if subsync replies to this messages
subscription = self.unrestrictedTraverse(subscription_path) subscription = self.unrestrictedTraverse(subscription_path)
if msg is None and (subscription.getSubscriptionUrlString()).find('file') >= 0: if msg is None and subscription.getSubscriptionUrlString('').find('file') >= 0:
msg = self.readResponse(sync_id=subscription.getDestinationReference(), msg = self.readResponse(sync_id=subscription.getDestinationReference(),
from_url=subscription.getSubscriptionUrlString()) from_url=subscription.getSubscriptionUrlString())
if msg is None: if msg is None:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment