File tree Expand file tree Collapse file tree
python/lsst/pipe/base/quantum_graph Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ Fix a bug in ` butler provenance-report ` that caused an exception to be raised when trying to print an empty table.
Original file line number Diff line number Diff line change @@ -1602,12 +1602,14 @@ def make_many_reports(
16021602 stream .write (status_report .model_dump_json (indent = 2 ))
16031603 if print_quantum_table :
16041604 quantum_table = self .make_quantum_table ()
1605- quantum_table .pprint_all ()
1606- print ("" )
1605+ if quantum_table :
1606+ quantum_table .pprint_all ()
1607+ print ("" )
16071608 if print_exception_table :
16081609 exception_table = self .make_exception_table ()
1609- exception_table .pprint_all ()
1610- print ("" )
1610+ if exception_table :
1611+ exception_table .pprint_all ()
1612+ print ("" )
16111613
16121614
16131615@dataclasses .dataclass
You can’t perform that action at this time.
0 commit comments