mirror of
https://github.com/shirayu/whispering.git
synced 2025-02-18 03:25:15 +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":
|
if opts.mode == "client":
|
||||||
assert opts.language is None
|
assert opts.language is None
|
||||||
assert opts.model is None
|
assert opts.model is None
|
||||||
asyncio.run(
|
try:
|
||||||
run_websocket_client(
|
asyncio.run(
|
||||||
opts=opts,
|
run_websocket_client(
|
||||||
|
opts=opts,
|
||||||
|
)
|
||||||
)
|
)
|
||||||
)
|
except KeyboardInterrupt:
|
||||||
|
pass
|
||||||
else:
|
else:
|
||||||
assert opts.language is not None
|
assert opts.language is not None
|
||||||
assert opts.model is not None
|
assert opts.model is not None
|
||||||
|
|
Loading…
Reference in a new issue