fix: just in case user is null...

This commit is contained in:
əlemi 2023-03-06 23:12:36 +01:00
parent 66f0b46503
commit 49e85d47d1
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

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