File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed
src/autonomy_metrics/autonomy_metrics Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -109,9 +109,20 @@ def __init__(self):
109109 self .db_mgr = DBMgr (host = self .mongo_host , port = self .mongo_port )
110110
111111 # Get aoc git repos info
112- aoc_scenario_git_info = self .get_git_info (self .aoc_scenario_path )
113- aoc_navigation_git_info = self .get_git_info (self .aoc_navigation_path )
114-
112+ try :
113+ self .get_logger ().info ("Retrieving AOC git repository information..." )
114+ aoc_scenario_git_info = self .get_git_info (self .aoc_scenario_path )
115+ except Exception as e :
116+ self .get_logger ().error (f"Error while logging git info: { e } " )
117+ aoc_scenario_git_info = None
118+
119+ try :
120+ self .get_logger ().info ("Retrieving AOC Navigation git repository information..." )
121+ aoc_navigation_git_info = self .get_git_info (self .aoc_navigation_path )
122+ except Exception as e :
123+ self .get_logger ().error (f"Error while logging git info: { e } " )
124+ aoc_navigation_git_info = None
125+
115126 git_repos = []
116127 git_repos .append ({'aoc_scenario_git_info' : aoc_scenario_git_info })
117128 git_repos .append ({'aoc_navigation_git_info' : aoc_navigation_git_info })
You can’t perform that action at this time.
0 commit comments