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}")
|
print(f"{lbrynet_name} {lbrynet_version}")
|
||||||
return 0
|
return 0
|
||||||
elif args.command == 'start':
|
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:
|
elif args.command is not None:
|
||||||
doc = args.doc
|
doc = args.doc
|
||||||
api_method_name = args.api_method_name
|
api_method_name = args.api_method_name
|
||||||
|
|
Loading…
Reference in a new issue