diff --git a/sdk/src/beta9/multipart.py b/sdk/src/beta9/multipart.py index a317d7d10..3fbf4495e 100644 --- a/sdk/src/beta9/multipart.py +++ b/sdk/src/beta9/multipart.py @@ -364,7 +364,7 @@ def _calculate_file_ranges(file_size: int, chunk_size: int) -> List[FileRange]: Returns: List of byte ranges. """ - ranges = math.ceil(file_size / chunk_size) + ranges = math.ceil(file_size / (chunk_size or 1)) return [ FileRange( number=i + 1,