From 96a395345045964167ec0cc174d333364607a854 Mon Sep 17 00:00:00 2001 From: nex Date: Mon, 19 Feb 2024 11:12:14 +0000 Subject: [PATCH] Fix SyntaxError --- web/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/server.py b/web/server.py index 400c959..43e5604 100644 --- a/web/server.py +++ b/web/server.py @@ -363,7 +363,7 @@ async def bridge_bind_callback(code: str, state: str): # Getting an entire access token seems like a waste, but oh well. Only need to do this once. mx_id = app.state.binds.pop(state, None) if not mx_id: - raise HTTPException(status_code=400, "Invalid state") + raise HTTPException(status_code=400, detail="Invalid state") data = await get_access_token(code) access_token = data["access_token"] user = await get_authorised_user(access_token)