Fix error if file not found

This commit is contained in:
Wilson Snyder 2022-01-22 19:44:40 -05:00
parent 046896e60a
commit d3b63b2653

View File

@ -38,10 +38,10 @@ def diff_dir(a, b):
anyfile = False
for base in sorted(files.keys()):
if (not 'a' in files[base]) or (not 'b' in files[base]):
continue
a = files[base]['a']
b = files[base]['b']
if not a or not b:
continue
print("=" * 70)
print("= %s <-> %s" % (a, b))
diff_file(a, b)