diff --git a/hnarchive.py b/hnarchive.py index 9d1be57..9c9b9cc 100644 --- a/hnarchive.py +++ b/hnarchive.py @@ -387,6 +387,10 @@ def update_items_argparse(args): ids = cur.fetchall() log.info('Updating %d items.', len(ids)) + + if not ids: + return + ids = [id for (id,) in ids] items = get_items(ids, threads=args.threads)