Return 1 when ending by ctrlc.
This commit is contained in:
parent
d11a72e163
commit
dc0ea1959c
1 changed files with 2 additions and 1 deletions
|
@ -62,6 +62,7 @@ def ctrlc_commit(function):
|
||||||
return function(*args, **kwargs)
|
return function(*args, **kwargs)
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
commit()
|
commit()
|
||||||
|
return 1
|
||||||
return wrapped
|
return wrapped
|
||||||
|
|
||||||
def int_or_none(x):
|
def int_or_none(x):
|
||||||
|
@ -393,7 +394,7 @@ def update_items_argparse(args):
|
||||||
log.info('Updating %d items.', len(ids))
|
log.info('Updating %d items.', len(ids))
|
||||||
|
|
||||||
if not ids:
|
if not ids:
|
||||||
return
|
return 0
|
||||||
|
|
||||||
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