Commit c820b88e authored by Aurel's avatar Aurel

max_gid must be always defined

parent f8c39585
...@@ -314,11 +314,11 @@ class SyncMLSubscription(XMLObject): ...@@ -314,11 +314,11 @@ class SyncMLSubscription(XMLObject):
first_call = False first_call = False
else: else:
min_gid = r[i] min_gid = r[i]
try: try:
max_gid = r[i+packet_size] max_gid = r[i+packet_size]
except IndexError: except IndexError:
# Last packet # Last packet
max_gid = r[-1] max_gid = r[-1]
callback_method(min_gid=min_gid, callback_method(min_gid=min_gid,
max_gid=max_gid, max_gid=max_gid,
message_id=message_id_list.pop(), message_id=message_id_list.pop(),
......
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