From 68ded48be12bf3e2819981587aeb3ea7a47293c1 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Wed, 2 Nov 2022 10:52:37 +0100 Subject: [PATCH] Don't crash on user with missing realname either --- lib/user.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/user.py b/lib/user.py index 813d218..6421c39 100644 --- a/lib/user.py +++ b/lib/user.py @@ -10,6 +10,7 @@ FAKE_ACCOUNTS = ( "$user", "embar-", "michel_mno", + "guinux", ) @@ -17,6 +18,8 @@ class User: def parse(self, xml, userid): self.userid = userid self.realname = xml.find("realname").text + if self.realname is None: + self.realname = "" self.email = xml.find("email").text if self.email is None: self.email = ""