Commit 3b8ea807 authored by Nicolas Delaby's avatar Nicolas Delaby

Avoid casting of None into 'None'

return empty string by default
parent de75a33d
...@@ -1501,7 +1501,7 @@ class SynchronizationTool(BaseTool): ...@@ -1501,7 +1501,7 @@ class SynchronizationTool(BaseTool):
#create element 'SyncML' with a default namespace #create element 'SyncML' with a default namespace
xml = E.SyncML() xml = E.SyncML()
# syncml header # syncml header
data = "%s:%s" % (subscription.getUserId(), subscription.getPassword()) data = "%s:%s" % (subscription.getUserId(''), subscription.getPassword(''))
data = encode(subscription.getAuthenticationFormat(), data) data = encode(subscription.getAuthenticationFormat(), data)
xml.append(self.SyncMLHeader( xml.append(self.SyncMLHeader(
subscription.incrementSessionId(), subscription.incrementSessionId(),
......
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