Commit 93f4209
committed
fix: gracefully exit on interrupt
Catch KeyboardInterrupt and asyncio.CancelledError exceptions to ensure
the application exits without printing traceback on interrupt. This
allows gptscript to kill the provider silently.
Signed-off-by: Nick Hale <4175918+njhale@users.noreply.github.com>1 parent f416394 commit 93f4209
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
| 360 | + | |
360 | 361 | | |
361 | | - | |
| 362 | + | |
| 363 | + | |
362 | 364 | | |
| 365 | + | |
| 366 | + | |
0 commit comments