From 5abc0e69c54a0f8753b925ebe49284076419ed86 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Fri, 3 Jan 2003 02:18:54 +0000 Subject: [PATCH] Handle unknown gender svn: r1237 --- src/plugins/WebPage.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/WebPage.py b/src/plugins/WebPage.py index 1081918c0..d53880adb 100644 --- a/src/plugins/WebPage.py +++ b/src/plugins/WebPage.py @@ -262,8 +262,10 @@ class IndividualPage: if self.person.getGender() == Person.male: self.write_normal_row("%s:" % _("Gender"), _("Male"),None) - else: + elif self.person.getGender() == Person.female: self.write_normal_row("%s:" % _("Gender"), _("Female"),None) + else: + self.write_normal_row("%s:" % _("Gender"), _("Unknown"), None) family = self.person.getMainParents() if family: