cleanup: return after cmd removed in main()
This commit is contained in:
parent
536c8fa454
commit
58477dcd82
@ -44,11 +44,10 @@ def main(sysargv: List[str]) -> None:
|
|||||||
args.func(args)
|
args.func(args)
|
||||||
# TODO: fetch return_code as returned by the command function here
|
# TODO: fetch return_code as returned by the command function here
|
||||||
return_code = 0
|
return_code = 0
|
||||||
return
|
else:
|
||||||
|
# Load and run worker
|
||||||
# Load and run worker
|
worker = Worker(args)
|
||||||
worker = Worker(args)
|
worker.run()
|
||||||
worker.run()
|
|
||||||
|
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
logger.info('SIGINT received, aborting ...')
|
logger.info('SIGINT received, aborting ...')
|
||||||
|
Loading…
Reference in New Issue
Block a user