Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
Signed-off-by: Isaac Milarsky <[email protected]>
  • Loading branch information
IsaacMilarky committed Aug 28, 2024
1 parent 95d1874 commit a9f43e7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/metricsLib/metrics_data_structures.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,13 @@ def get_values(self, params=None):
to_return = {}

for return_label, api_label in self.return_values.items():
to_return[return_label] = metric_json[api_label]
try:
to_return[return_label] = metric_json[api_label]
except KeyError as e:
print(f"KeyError found when trying to map return values: {e}")
print(
f"Map throws KeyError when trying to parse return values for metric {self.name}"
)

return to_return

Expand Down

0 comments on commit a9f43e7

Please sign in to comment.