🐛 Fixed 403 response from kahoot

This commit is contained in:
Mawoka
2022-04-25 13:42:15 +02:00
parent ff6d57f2a2
commit d7912a0163
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -19,5 +19,7 @@ async def get(game_id: str) -> _Response | None:
return None
elif response.status == 400:
return None
elif response.status == 403:
return None
else:
raise Exception(f"Unexpected response status: {response.status}")
+1
View File
@@ -118,3 +118,4 @@ async def test_get():
await get(i)
lol = await get("f183e091-a863-44ec-a1b7-c70eb92e3f6a")
assert lol is None
assert await get("8c523af2-6fbf-4940-a5fa-6b6130546892") is None