Fix unnecessary await

This commit is contained in:
Kai Vogelgesang 2022-09-26 00:24:49 +02:00
parent 466449b7b8
commit 7a7275cf66
Signed by: kai
GPG Key ID: 0A95D3B6E62C0879

View File

@ -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))