aboutsummaryrefslogtreecommitdiffhomepage
path: root/gbp/scripts/push.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2017-12-25 12:28:28 +0100
committerGuido Günther <agx@sigxcpu.org>2017-12-25 12:28:28 +0100
commit13cd3b4af38342283c962709c0ce777509eb7e6d (patch)
tree904c8d60438805cc34abcf719f599982600e781a /gbp/scripts/push.py
parent3003d0778aed0afcfe766d1595348b83e59df616 (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-xgbp/scripts/push.py2
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