Check for empty place object

svn: r351
This commit is contained in:
Don Allingham 2001-08-20 23:18:30 +00:00
parent 983376317a
commit db3adf44e9

View File

@ -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 == "":