From 1877d412b7fdb401e1e187dcad8231b500c385b6 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Mon, 20 Aug 2001 23:18:30 +0000 Subject: [PATCH] Check for empty place object svn: r351 --- src/plugins/WebPage.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/plugins/WebPage.py b/src/plugins/WebPage.py index c928b7729..f239a05c4 100644 --- a/src/plugins/WebPage.py +++ b/src/plugins/WebPage.py @@ -300,7 +300,10 @@ class IndividualPage: continue name = _(event.getName()) date = event.getDate() - place = event.getPlace().get_title() + if event.getPlace(): + place = event.getPlace().get_title() + else: + place = "" description = event.getDescription() if date == "": if place == "": @@ -346,7 +349,10 @@ class IndividualPage: return name = event.getName() date = event.getDate() - place = event.getPlace().get_title() + if event.getPlace(): + place = event.getPlace().get_title() + else: + place = "" description = event.getDescription() if date == "": if place == "":