From 8b97f474b68096eb775cc89e8cd06178f2949061 Mon Sep 17 00:00:00 2001 From: Guilhem Lavaux Date: Thu, 14 Nov 2024 14:39:19 +0100 Subject: [PATCH] fix: test if mentor is set --- src/buguser.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/buguser.py b/src/buguser.py index a1be508..84ad009 100644 --- a/src/buguser.py +++ b/src/buguser.py @@ -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"])