Skip to content

Commit

Permalink
fix multipart download empty file
Browse files Browse the repository at this point in the history
  • Loading branch information
nickpetrovic committed Jan 11, 2025
1 parent e2a9d56 commit 58ed7a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/src/beta9/multipart.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 58ed7a7

Please sign in to comment.