Go ahead and bail if no ids to update.
This commit is contained in:
parent
8a2e72b5cf
commit
c0a59059f5
1 changed files with 4 additions and 0 deletions
|
@ -387,6 +387,10 @@ def update_items_argparse(args):
|
||||||
ids = cur.fetchall()
|
ids = cur.fetchall()
|
||||||
|
|
||||||
log.info('Updating %d items.', len(ids))
|
log.info('Updating %d items.', len(ids))
|
||||||
|
|
||||||
|
if not ids:
|
||||||
|
return
|
||||||
|
|
||||||
ids = [id for (id,) in ids]
|
ids = [id for (id,) in ids]
|
||||||
items = get_items(ids, threads=args.threads)
|
items = get_items(ids, threads=args.threads)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue