From e4a4263d44bfb2931c97cc7f84cb15c1f8e3e0ff Mon Sep 17 00:00:00 2001 From: Johannes Findeisen Date: Mon, 27 May 2013 18:55:48 +0200 Subject: [PATCH] small change to the while true loop for making linspector interruptable using ctrl-c --- linspector | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/linspector b/linspector index fec3c07..a19dc39 100755 --- a/linspector +++ b/linspector @@ -73,12 +73,10 @@ def main(): log.d(str(job)) while True: - try: - time.sleep(10) - for job in jobs: - log.d(str(job)) - except: - print "error" + time.sleep(10) + for job in jobs: + log.d(str(job)) + elif args.action == "stop": log.i("stopping linspector is currently unsupported")