From 0e638d795be4da3d868816e36ce23fa4c1a2442e Mon Sep 17 00:00:00 2001 From: Alexander Saltanov Date: Wed, 26 Sep 2012 13:43:45 +0400 Subject: [PATCH] Don't show traceback in rqinfo when ^C is pressed. --- rq/scripts/rqinfo.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rq/scripts/rqinfo.py b/rq/scripts/rqinfo.py index 6920783..7e03647 100755 --- a/rq/scripts/rqinfo.py +++ b/rq/scripts/rqinfo.py @@ -183,3 +183,7 @@ def main(): except ConnectionError as e: print(e) sys.exit(1) + except KeyboardInterrupt: + print + sys.exit(0) +