Skip to content

Commit 4b45630

Browse files
committed
Minor fix for i/o on failed lines
1 parent 8334730 commit 4b45630

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

velociraptor/autoplotter/metadata.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,12 @@ def to_dict(self):
7272
additional_points_x_units=str(self.additional_x.units),
7373
additional_points_y=self.additional_y.value.tolist(),
7474
additional_points_y_units=str(self.additional_y.units),
75-
bins_x=self.line.bins.value.tolist(),
76-
bins_x_units=str(self.line.bins.units),
75+
bins_x=self.line.bins.value.tolist()
76+
if self.line.bins is not None
77+
else None,
78+
bins_x_units=str(
79+
self.line.bins.units if self.line.bins is not None else None
80+
),
7781
)
7882

7983
try:

0 commit comments

Comments
 (0)