1
0
Fork 0

Return 1 when ending by ctrlc.

This commit is contained in:
voussoir 2021-10-15 23:03:24 -07:00
parent d11a72e163
commit dc0ea1959c
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -62,6 +62,7 @@ def ctrlc_commit(function):
return function(*args, **kwargs)
except KeyboardInterrupt:
commit()
return 1
return wrapped
def int_or_none(x):
@ -393,7 +394,7 @@ def update_items_argparse(args):
log.info('Updating %d items.', len(ids))
if not ids:
return
return 0
ids = [id for (id,) in ids]
items = get_items(ids, threads=args.threads)