8430: Place displayer should not return None
The place displayer should return an empty string for an event with no place.
This commit is contained in:
parent
1e1cea792e
commit
102c099f1d
@ -55,6 +55,8 @@ class PlaceDisplay(object):
|
|||||||
if place_handle:
|
if place_handle:
|
||||||
place = db.get_place_from_handle(place_handle)
|
place = db.get_place_from_handle(place_handle)
|
||||||
return self.display(db, place, event.get_date_object())
|
return self.display(db, place, event.get_date_object())
|
||||||
|
else:
|
||||||
|
return ""
|
||||||
|
|
||||||
def display(self, db, place, date=None):
|
def display(self, db, place, date=None):
|
||||||
if not place:
|
if not place:
|
||||||
|
Loading…
Reference in New Issue
Block a user