mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
Fix SyntaxError
This commit is contained in:
parent
395bb44661
commit
96a3953450
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
# 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)
|
mx_id = app.state.binds.pop(state, None)
|
||||||
if not mx_id:
|
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)
|
data = await get_access_token(code)
|
||||||
access_token = data["access_token"]
|
access_token = data["access_token"]
|
||||||
user = await get_authorised_user(access_token)
|
user = await get_authorised_user(access_token)
|
||||||
|
|
Loading…
Reference in a new issue