From 7d0acbfee6cedf5a883b341b8edc9c7a6ef2c104 Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Sat, 17 Nov 2007 15:04:46 +0000 Subject: [PATCH] Don't print a stack trace if the user exits with CTRL-C. --- 0publish | 3 +++ 1 file changed, 3 insertions(+) diff --git a/0publish b/0publish index b93c060..5121188 100755 --- a/0publish +++ b/0publish @@ -188,6 +188,9 @@ try: assert saved_data == data assert saved_sign_fn == sign_fn signing.export_key(os.path.dirname(interface), saved_key) +except KeyboardInterrupt, ex: + print >>sys.stderr, "Aborted at user's request" + sys.exit(1) except SafeException, ex: if options.verbose: raise print >>sys.stderr, ex -- 2.11.4.GIT