Skip to content

Commit 3646dc2

Browse files
Refactor error handling in plan approval to remove redundant exception logging
1 parent 1e20aaf commit 3646dc2

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/backend/v3/api/router.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -421,13 +421,7 @@ async def plan_approval(human_feedback: messages.PlanApprovalResponse, request:
421421
message_type=WebsocketMessageType.ERROR_MESSAGE,
422422
)
423423

424-
except Exception as e:
425-
# print(f"Error processing plan approval: {e}")
426-
# await connection_config.send_status_update_async(
427-
# {
428-
# "type": WebsocketMessageType.ERROR_MESSAGE,
429-
# "data": {
430-
# "content": f"Failed to process approval: {str(e)}",
424+
except Exception:
431425
logger.error("Error processing plan approval", exc_info=True)
432426
await connection_config.send_status_update_async(
433427
{

0 commit comments

Comments
 (0)