From 49e85d47d1e26a2ba943dd3df18db160d86d164d Mon Sep 17 00:00:00 2001 From: alemi Date: Mon, 6 Mar 2023 23:12:36 +0100 Subject: [PATCH] fix: just in case user is null... --- aiocraft/mc/auth/mojang.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiocraft/mc/auth/mojang.py b/aiocraft/mc/auth/mojang.py index ce41215..30ae831 100644 --- a/aiocraft/mc/auth/mojang.py +++ b/aiocraft/mc/auth/mojang.py @@ -126,7 +126,7 @@ class MojangAuthenticator(AuthInterface): self.clientToken = res["clientToken"] self.selectedProfile = GameProfile(**res["selectedProfile"]) - if "user" in res: + if "user" in res and res["user"]: self.username = res["user"]["username"] return self