Catch 403/quota exceeded errors during data transfer
I came across this when trying to upload but hitting a quota. We throw a general error for failures during multipart transfers, however I think this is a common enough case that we should be more explicit and throw an error.
Looks like the format string isn't passed a second arg, which is the cause of the exception woes.
S3ResponseError: 403 Forbidden
<?xml version="1.0" encoding="UTF-8"?><Error><Code>QuotaExceeded</Code></Error>
Exception in thread Thread-3:
Traceback (most recent call last):
File "/usr/lib64/python2.7/threading.py", line 811, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/site-packages/umobj/multipart.py", line 32, in run
self._upload_part(part_num, offset, bytes)
File "/usr/lib/python2.7/site-packages/umobj/multipart.py", line 50, in _upload_part
'%s : retrying with %d retries left' % retries - 1)
TypeError: not enough arguments for format string