Skip to content

Commit

Permalink
handle KeyboardInterrupt in cli
Browse files Browse the repository at this point in the history
  • Loading branch information
vladkens committed Jan 5, 2024
1 parent 4b67be6 commit 5fc84d8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion twscrape/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,4 +193,7 @@ def c_lim(name: str, msg: str, a_name: str, a_msg: str, a_type: type = str):
if args.command is None:
return custom_help(p)

asyncio.run(main(args))
try:
asyncio.run(main(args))
except KeyboardInterrupt:
pass

0 comments on commit 5fc84d8

Please sign in to comment.