Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/changes/DM-54084.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix a bug in `butler provenance-report` that caused an exception to be raised when trying to print an empty table.
10 changes: 6 additions & 4 deletions python/lsst/pipe/base/quantum_graph/_provenance.py
Original file line number Diff line number Diff line change
Expand Up @@ -1602,12 +1602,14 @@ def make_many_reports(
stream.write(status_report.model_dump_json(indent=2))
if print_quantum_table:
quantum_table = self.make_quantum_table()
quantum_table.pprint_all()
print("")
if quantum_table:
quantum_table.pprint_all()
print("")
if print_exception_table:
exception_table = self.make_exception_table()
exception_table.pprint_all()
print("")
if exception_table:
exception_table.pprint_all()
print("")


@dataclasses.dataclass
Expand Down
Loading