cleanup: return after cmd removed in main()

This commit is contained in:
hroff-1902 2019-05-28 23:25:19 +03:00
parent 536c8fa454
commit 58477dcd82

View File

@ -44,11 +44,10 @@ def main(sysargv: List[str]) -> None:
args.func(args)
# TODO: fetch return_code as returned by the command function here
return_code = 0
return
# Load and run worker
worker = Worker(args)
worker.run()
else:
# Load and run worker
worker = Worker(args)
worker.run()
except KeyboardInterrupt:
logger.info('SIGINT received, aborting ...')