From ba66a96c657cb661815d8dc529b3424102376897 Mon Sep 17 00:00:00 2001 From: augustin64 Date: Wed, 10 Apr 2024 10:29:53 +0200 Subject: [PATCH] Check if creds are not empty --- modules/Classes/UserCredentials.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/Classes/UserCredentials.py b/modules/Classes/UserCredentials.py index cbc9fcc..6ded7fa 100644 --- a/modules/Classes/UserCredentials.py +++ b/modules/Classes/UserCredentials.py @@ -41,4 +41,5 @@ class UserCredentials: debug("No new credentials.") def is_valid(self): - return self.current < self.total + return (self.current < self.total + and self.get_mail() != "" and self.get_mail is not None)