Check for empty place object
svn: r351
This commit is contained in:
parent
983376317a
commit
db3adf44e9
@ -300,7 +300,10 @@ class IndividualPage:
|
|||||||
continue
|
continue
|
||||||
name = _(event.getName())
|
name = _(event.getName())
|
||||||
date = event.getDate()
|
date = event.getDate()
|
||||||
place = event.getPlace().get_title()
|
if event.getPlace():
|
||||||
|
place = event.getPlace().get_title()
|
||||||
|
else:
|
||||||
|
place = ""
|
||||||
description = event.getDescription()
|
description = event.getDescription()
|
||||||
if date == "":
|
if date == "":
|
||||||
if place == "":
|
if place == "":
|
||||||
@ -346,7 +349,10 @@ class IndividualPage:
|
|||||||
return
|
return
|
||||||
name = event.getName()
|
name = event.getName()
|
||||||
date = event.getDate()
|
date = event.getDate()
|
||||||
place = event.getPlace().get_title()
|
if event.getPlace():
|
||||||
|
place = event.getPlace().get_title()
|
||||||
|
else:
|
||||||
|
place = ""
|
||||||
description = event.getDescription()
|
description = event.getDescription()
|
||||||
if date == "":
|
if date == "":
|
||||||
if place == "":
|
if place == "":
|
||||||
|
Loading…
Reference in New Issue
Block a user