Geography : crash with geoclose when we change the database.
svn: r19388
This commit is contained in:
parent
8260f30b94
commit
5fc79c4009
@ -312,9 +312,13 @@ class GeoClose(GeoGraphyView):
|
|||||||
continue
|
continue
|
||||||
event = dbstate.db.get_event_from_handle(event_ref.ref)
|
event = dbstate.db.get_event_from_handle(event_ref.ref)
|
||||||
role = event_ref.get_role()
|
role = event_ref.get_role()
|
||||||
eyear = str("%04d" % event.get_date_object().to_calendar(self.cal).get_year()) + \
|
try:
|
||||||
str("%02d" % event.get_date_object().to_calendar(self.cal).get_month()) + \
|
date = event.get_date_object().to_calendar(self.cal)
|
||||||
str("%02d" % event.get_date_object().to_calendar(self.cal).get_day())
|
except:
|
||||||
|
continue
|
||||||
|
eyear = str("%04d" % date.get_year()) + \
|
||||||
|
str("%02d" % date.get_month()) + \
|
||||||
|
str("%02d" % date.get_day())
|
||||||
place_handle = event.get_place_handle()
|
place_handle = event.get_place_handle()
|
||||||
if place_handle:
|
if place_handle:
|
||||||
place = dbstate.db.get_place_from_handle(place_handle)
|
place = dbstate.db.get_place_from_handle(place_handle)
|
||||||
|
Loading…
Reference in New Issue
Block a user