Skip to content

Commit 30bbe86

Browse files
Potential fix for pull request finding 'Empty except'
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
1 parent a31e605 commit 30bbe86

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

examples/on_demand_sandbox/remote_worker.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,5 @@ def _remote_hello(ctx: task.ActivityContext, name: str) -> str:
2626
try:
2727
threading.Event().wait()
2828
except KeyboardInterrupt:
29+
# Expected on Ctrl+C: exit loop and let the context manager stop the worker gracefully.
2930
pass

0 commit comments

Comments
 (0)