Skip to content

Commit 0296fff

Browse files
committed
handle directories
1 parent 1c305ab commit 0296fff

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

v03_pipeline/lib/paths.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ def _callset_path_hash(callset_path: str) -> str:
7171
if not shards:
7272
key = callset_path
7373
else:
74-
key = callset_path + str(max(f.modification_time for f in shards))
74+
# f.modification_time is None for directories
75+
key = callset_path + str(
76+
max((f.modification_time if f.modification_time else 0) for f in shards)
77+
)
7578
except FileNotFoundError:
7679
key = callset_path
7780
return hashlib.sha256(

0 commit comments

Comments
 (0)