diff options
author | Guido Günther <agx@sigxcpu.org> | 2017-12-25 12:28:28 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2017-12-25 12:28:28 +0100 |
commit | 13cd3b4af38342283c962709c0ce777509eb7e6d (patch) | |
tree | 904c8d60438805cc34abcf719f599982600e781a /gbp/scripts/push.py | |
parent | 3003d0778aed0afcfe766d1595348b83e59df616 (diff) |
Handle KeyboardInterrupt in pristine_tar, push, rpm_ch and tag
to avoid python exceptions on the console. The other commands handle it
already.
Diffstat (limited to 'gbp/scripts/push.py')
-rwxr-xr-x | gbp/scripts/push.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gbp/scripts/push.py b/gbp/scripts/push.py index 268abbed..868b0954 100755 --- a/gbp/scripts/push.py +++ b/gbp/scripts/push.py @@ -170,6 +170,8 @@ def main(argv): except (GbpError, GitRepositoryError, DebianSourceError) as err: if str(err): gbp.log.err(err) + except KeyboardInterrupt: + gbp.log.err("Interrupted. Aborting.") return retval |