Add suppress KeyboardInterrupt

This commit is contained in:
BarsTiger
2023-10-25 13:26:13 +03:00
parent 6624c3d900
commit 0076d791b4

View File

@@ -1,4 +1,5 @@
from rich import print
import contextlib
async def runner():
@@ -25,4 +26,7 @@ def main():
apply()
print('Starting...')
asyncio.run(runner())
with contextlib.suppress(KeyboardInterrupt):
asyncio.run(runner())
print('[red]Stopped.[/]')