Skip to content

Commit

Permalink
[uss_qualifier] Fix error raising exception in uss_qualifier on some …
Browse files Browse the repository at this point in the history
…error paths (#371)

bugfix
  • Loading branch information
vgrafe authored Nov 28, 2023
1 parent 225b67d commit 940352b
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -439,9 +439,9 @@ def submit_flight(
) as specific_failed_check:
if resp.activity_result == unexpected_result:
specific_failed_check.record_failed(
summary=f"Flight unexpectedly {resp.result}",
summary=f"Flight unexpectedly {resp.activity_result}",
severity=check_severity,
details=f'{flight_planner.participant_id} indicated {resp.result} rather than the expected {" or ".join(expected_results)}{notes_suffix}',
details=f'{flight_planner.participant_id} indicated {resp.activity_result} rather than the expected {" or ".join([activity_res for activity_res,_ in expected_results])}{notes_suffix}',
query_timestamps=[query.request.timestamp],
)

Expand All @@ -450,9 +450,9 @@ def submit_flight(
return resp, flight_id
else:
check.record_failed(
summary=f"Flight unexpectedly {resp.result}",
summary=f"Flight unexpectedly {resp.activity_result}",
severity=Severity.High,
details=f'{flight_planner.participant_id} indicated {resp.result} rather than the expected {" or ".join(expected_results)}{notes_suffix}',
details=f'{flight_planner.participant_id} indicated {resp.activity_result} rather than the expected {" or ".join([activity_res for activity_res,_ in expected_results])}{notes_suffix}',
query_timestamps=[query.request.timestamp],
)

Expand Down

0 comments on commit 940352b

Please sign in to comment.