fix: retain diagnostic BOM reports without actionable cleanup previews
This commit is contained in:
1 parent
89c7c603f6
commit
bdb096fb88
3 files changed
+17
-1
No files matched your search
@@ -143,7 +143,9 @@ def inspect_batch(service, task_id, path, *, stop_event=None, on_progress=None,
|
||||
owned_runtime.result = report
|
||||
return report
|
||||
except BatchResourceCleanupError as error:
|
||||
error.bom_report = report
|
||||
error.bom_report = replace(report, preview=None) if report is not None else None
|
||||
if isinstance(error.completed_result, BomImportReport):
|
||||
error.completed_result = replace(error.completed_result, preview=None)
|
||||
raise
|
||||
def check_cancelled():
|
||||
if stop_event is not None and stop_event.is_set():
|
||||
|
||||
Reference in new issue
Block a user