KeyboardInterrupt
This commit is contained in:
parent
5596eac930
commit
d62ac0b608
1 changed files with 4 additions and 1 deletions
|
@ -217,7 +217,10 @@ def main(argv=None):
|
|||
print(f"{lbrynet_name} {lbrynet_version}")
|
||||
return 0
|
||||
elif args.command == 'start':
|
||||
return asyncio.run(start_daemon(conf, args))
|
||||
try:
|
||||
asyncio.run(start_daemon(conf, args))
|
||||
except (KeyboardInterrupt, asyncio.CancelledError):
|
||||
return 0
|
||||
elif args.command is not None:
|
||||
doc = args.doc
|
||||
api_method_name = args.api_method_name
|
||||
|
|
Loading…
Reference in a new issue