Skip to content

Commit

Permalink
Drop a hardcoded value in an error message. (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
craigcitro authored and tseaver committed Jan 16, 2019
1 parent a46efe5 commit 34a36be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion google/resumable_media/_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,8 @@ class ResumableUpload(UploadBase):
def __init__(self, upload_url, chunk_size, headers=None):
super(ResumableUpload, self).__init__(upload_url, headers=headers)
if chunk_size % resumable_media.UPLOAD_CHUNK_SIZE != 0:
raise ValueError(u'256 KB must divide chunk size')
raise ValueError(u'{} KB must divide chunk size'.format(
resumable_media.UPLOAD_CHUNK_SIZE / 1024))
self._chunk_size = chunk_size
self._stream = None
self._content_type = None
Expand Down

0 comments on commit 34a36be

Please sign in to comment.