fix: just in case user is null...
This commit is contained in:
parent
66f0b46503
commit
49e85d47d1
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ class MojangAuthenticator(AuthInterface):
|
||||||
self.clientToken = res["clientToken"]
|
self.clientToken = res["clientToken"]
|
||||||
self.selectedProfile = GameProfile(**res["selectedProfile"])
|
self.selectedProfile = GameProfile(**res["selectedProfile"])
|
||||||
|
|
||||||
if "user" in res:
|
if "user" in res and res["user"]:
|
||||||
self.username = res["user"]["username"]
|
self.username = res["user"]["username"]
|
||||||
|
|
||||||
return self
|
return self
|
||||||
|
|
Loading…
Reference in a new issue