fix: replace bare except clause with Exception in WebSocket heartbeat

A bare `except:` catches everything including SystemExit and
KeyboardInterrupt, making it impossible to gracefully shut down the
server. Changed to `except Exception:` to match the intent while
allowing system signals to propagate.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Test User 2026-05-14 19:58:08 +08:00
parent c0a257fe9c
commit 148a129dce
No known key found for this signature in database

View file

@ -336,7 +336,7 @@ async def subscribe_executions(websocket: WebSocket):
"type": "heartbeat",
"timestamp": datetime.now(timezone.utc).isoformat()
})
except:
except Exception:
break
# Run both tasks concurrently