small change to the while true loop for making linspector interruptable using ctrl-c

This commit is contained in:
Johannes Findeisen 2013-05-27 18:55:48 +02:00
commit e4a4263d44

View file

@ -73,12 +73,10 @@ def main():
log.d(str(job)) log.d(str(job))
while True: while True:
try: time.sleep(10)
time.sleep(10) for job in jobs:
for job in jobs: log.d(str(job))
log.d(str(job))
except:
print "error"
elif args.action == "stop": elif args.action == "stop":
log.i("stopping linspector is currently unsupported") log.i("stopping linspector is currently unsupported")