diff --git a/rq/scripts/rqinfo.py b/rq/scripts/rqinfo.py index 71c302c..0782cd3 100755 --- a/rq/scripts/rqinfo.py +++ b/rq/scripts/rqinfo.py @@ -174,3 +174,4 @@ def main(): interval(args.interval, func, args) except ConnectionError as e: print(e) + sys.exit(1) diff --git a/rq/scripts/rqworker.py b/rq/scripts/rqworker.py index 06c3a7c..8adc65c 100755 --- a/rq/scripts/rqworker.py +++ b/rq/scripts/rqworker.py @@ -66,3 +66,4 @@ def main(): w.work(burst=args.burst) except ConnectionError as e: print(e) + sys.exit(1)