Commit c820b88e authored by Aurel's avatar Aurel

max_gid must be always defined

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