only add items if there are items
This commit is contained in:
parent
4a956e2a65
commit
3cd63695c4
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue