only add items if there are items

This commit is contained in:
j 2019-01-14 13:49:09 +05:30
parent 4a956e2a65
commit 3cd63695c4
1 changed files with 1 additions and 1 deletions

View File

@ -288,7 +288,7 @@ class Peer(object):
l.remove_items(lremove, commit=False)
if ladd or lremove:
logger.debug('update list %s', l.name)
else:
elif self.info['lists'][l.name]:
l.add_items(self.info['lists'][l.name], commit=False)
update_items = list(set(update_items) - set(self.info['lists'][l.name]))
logger.debug('update list %s', l.name)