Skip to content

Commit f470f9a

Browse files
committed
do not check file size
1 parent 24fec27 commit f470f9a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/file_info.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,8 @@ def worker_removed(self, worker, time_stage_out):
186186
def set_size_mb(self, size_mb):
187187
size_mb = float(size_mb)
188188
if self.size_mb > 0 and size_mb > 0 and size_mb != self.size_mb:
189-
raise ValueError(f"size mismatch for {self.filename}, {self.size_mb} != {size_mb}")
189+
# it could be that the file was created multiple times with different sizes
190+
print(f"Warning: size mismatch for {self.filename}, {self.size_mb} != {size_mb}")
190191
if size_mb > 0:
191192
self.size_mb = size_mb
192193

0 commit comments

Comments
 (0)