Skip to content

Commit

Permalink
G5compare: catch no differences
Browse files Browse the repository at this point in the history
  • Loading branch information
tdegeus committed Sep 15, 2022
1 parent 03b9693 commit 1cf438a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions GooseHDF5/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1656,6 +1656,10 @@ def def_row(arg, colors):
for path_a, path_b in zip(r_a["!="], r_b["!="]):
out.add_row(def_row([path_a, "!=", path_b], args.colors))

if len(out.rows) == 0:
print("No differences found")
return

file_a = print_path(args.a)
file_b = print_path(args.b)
n = max(len(row[0]) for row in out.rows)
Expand Down

0 comments on commit 1cf438a

Please sign in to comment.