Skip to content

Commit 00d40d5

Browse files
committed
fix: sanity check in consistency tools
1 parent 6bd7c3b commit 00d40d5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

consistency_check/consistency.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ def compare_checksum(
131131
# Make a single DF with both info, and only keep pfn in both
132132
joined = pd.concat([fc_dump, se_dump], axis=1)
133133
joined = joined[joined.index.isin(in_both)]
134+
if joined.empty:
135+
raise ValueError("Could not join properly, is something wrong with the files format ?")
134136

135137
# Filter on non matching checksum
136138
non_matching = joined.loc[joined["fc_cks"] != joined["se_cks"]][["seName", "lfn", "fc_cks", "se_cks"]]

0 commit comments

Comments
 (0)