Commit ef225b5a authored by Jan Kiene's avatar Jan Kiene
Browse files

fix comparison function in presence of None values

parent 2a9deda7
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -244,7 +244,12 @@ def merge_and_cleanup_mld_reports(
            for col_pair in other_col_pairs:
                col_prev = col_pair[0]
                col_curr = col_pair[1]

                try:
                    diff_other += abs(float(x[col_curr]) - float(x[col_prev]))
                except ValueError:
                    # can't make float from the column contents, probably NONE -> put to top
                    diff_other += float("inf")

            if diff_other > 0:
                diff = -1000000