File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -253,7 +253,7 @@ def run(
253
253
structured_output_dict [SettingsKeys .METADATA ] = metadata
254
254
structured_output = json .dumps (structured_output_dict )
255
255
256
- metrics = structured_output_dict [ SettingsKeys .METRICS ]
256
+ metrics = structured_output_dict . get ( SettingsKeys .METRICS , {})
257
257
new_metrics = {}
258
258
if tool_settings [SettingsKeys .ENABLE_SINGLE_PASS_EXTRACTION ]:
259
259
new_metrics = {
@@ -267,7 +267,8 @@ def run(
267
267
for key in set (metrics )
268
268
| set (index_metrics ) # Union of keys from both dictionaries
269
269
}
270
- structured_output_dict [SettingsKeys .METRICS ] = new_metrics
270
+ if new_metrics :
271
+ structured_output_dict [SettingsKeys .METRICS ] = new_metrics
271
272
# Update GUI
272
273
output_log = (
273
274
f"## Result\n **NOTE:** In case of a deployed pipeline, the result would "
You can’t perform that action at this time.
0 commit comments