mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-05-22 19:47:28 +00:00
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:
parent
c0a257fe9c
commit
148a129dce
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue