5595: DBError when rebuilding reference maps while Event view row is selected
svn: r19271
This commit is contained in:
parent
92c3c4e824
commit
707efc0aff
@ -1514,7 +1514,15 @@ def navigation_label(db, nav_type, handle):
|
|||||||
elif nav_type == 'Event':
|
elif nav_type == 'Event':
|
||||||
obj = db.get_event_from_handle(handle)
|
obj = db.get_event_from_handle(handle)
|
||||||
if obj:
|
if obj:
|
||||||
|
try:
|
||||||
who = get_participant_from_event(db, handle)
|
who = get_participant_from_event(db, handle)
|
||||||
|
except:
|
||||||
|
# get_participants_from_event fails when called during a magic
|
||||||
|
# batch transaction because find_backlink_handles tries to
|
||||||
|
# access the reference_map_referenced_map which doesn't exist
|
||||||
|
# under those circumstances. Since setting the navigation_label
|
||||||
|
# is inessential, just accept this and go on.
|
||||||
|
who = ''
|
||||||
desc = obj.get_description()
|
desc = obj.get_description()
|
||||||
label = obj.get_type()
|
label = obj.get_type()
|
||||||
if desc:
|
if desc:
|
||||||
|
Loading…
Reference in New Issue
Block a user