fix: test if mentor is set
This commit is contained in:
parent
7e94a15a05
commit
8b97f474b6
@ -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"])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user