mirror of
https://github.com/shirayu/whispering.git
synced 2024-11-25 10:21:00 +00:00
Catch KeyboardInterrupt
This commit is contained in:
parent
f46e71f51d
commit
b1f98f86ff
1 changed files with 7 additions and 4 deletions
|
@ -214,11 +214,14 @@ def main() -> None:
|
|||
if opts.mode == "client":
|
||||
assert opts.language is None
|
||||
assert opts.model is None
|
||||
asyncio.run(
|
||||
run_websocket_client(
|
||||
opts=opts,
|
||||
try:
|
||||
asyncio.run(
|
||||
run_websocket_client(
|
||||
opts=opts,
|
||||
)
|
||||
)
|
||||
)
|
||||
except KeyboardInterrupt:
|
||||
pass
|
||||
else:
|
||||
assert opts.language is not None
|
||||
assert opts.model is not None
|
||||
|
|
Loading…
Reference in a new issue