Use pipeable.ctrlc_return1.

This commit is contained in:
voussoir 2021-06-21 22:21:06 -07:00
parent d5a7fdb467
commit 396700b708
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -35,6 +35,7 @@ from voussoirkit import betterhelp
from voussoirkit import downloady
from voussoirkit import operatornotify
from voussoirkit import pathclass
from voussoirkit import pipeable
from voussoirkit import vlogging
log = vlogging.getLogger(__name__, 'fdroidapk')
@ -72,6 +73,7 @@ def _retry_request(f, tries=5):
time.sleep(bo.next())
tries -= 1
@pipeable.ctrlc_return1
def fpk_argparse(args):
destination = pathclass.Path(args.destination)
destination.assert_is_directory()