Skip to content

Commit

Permalink
Merge pull request #48 from thobrla/master
Browse files Browse the repository at this point in the history
Fix OverflowError in GetRange on 32-bit Python
  • Loading branch information
craigcitro committed Aug 26, 2015
2 parents fa45187 + 7db2f67 commit eea698d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apitools/base/py/transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ def GetRange(self, start, end=None, additional_headers=None,
progress_end_normalized = True
response = self.__ProcessResponse(response)
progress += response.length
if not response:
if response.length == 0:
raise exceptions.TransferRetryError(
'Zero bytes unexpectedly returned in download response')

Expand Down

0 comments on commit eea698d

Please sign in to comment.