From 250a3eb3430de6d7b78136aa4254e4523eb58feb Mon Sep 17 00:00:00 2001 From: Michiel Nauta Date: Sat, 7 Apr 2012 20:34:24 +0000 Subject: [PATCH] 5595: DBError when rebuilding reference maps while Event view row is selected svn: r19270 --- src/Utils.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Utils.py b/src/Utils.py index 777803452..916358d97 100644 --- a/src/Utils.py +++ b/src/Utils.py @@ -1514,7 +1514,15 @@ def navigation_label(db, nav_type, handle): elif nav_type == 'Event': obj = db.get_event_from_handle(handle) if obj: - who = get_participant_from_event(db, handle) + try: + 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() label = obj.get_type() if desc: