fix: test if mentor is set

This commit is contained in:
Guilhem Lavaux 2024-11-14 14:39:19 +01:00
parent 7e94a15a05
commit 8b97f474b6

View File

@ -91,6 +91,10 @@ def sponsor(user):
u = mapped_login[user]
if len(u["mentor"]) == 0:
print(f"The mentor is not set for {u}")
return
print(u["mentor"])
print(mapped_login[u["mentor"]]["name"])