Fix unnecessary await
This commit is contained in:
parent
466449b7b8
commit
7a7275cf66
@ -63,7 +63,7 @@ id_template = j2env.get_template("auth.lua")
|
||||
@api.get("/issue-id/{reg_token}")
|
||||
async def issue_computer_id(request: Request, reg_token: str):
|
||||
try:
|
||||
token = await decrypt_token(reg_token)
|
||||
token = decrypt_token(reg_token)
|
||||
assert await close_token(reg_token) == 1
|
||||
except Exception as e:
|
||||
await create_event("registration_fail", token=reg_token, exception=repr(e))
|
||||
|
Loading…
Reference in New Issue
Block a user