Skip to content

Commit

Permalink
Merge pull request #20 from seomoz/exception-formatting
Browse files Browse the repository at this point in the history
Fix issue #19 by casting to integer in excpetion.
  • Loading branch information
b4hand committed Mar 1, 2016
2 parents 69717b9 + e0f5223 commit 1f8aff2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion s3po/backends/swift.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def func():
logger.warn('No content-length provided -- cannot detect truncation.')
elif fobj.count != int(length):
raise DownloadException('Downloaded only %i of %i bytes' % (
fobj.count, length))
fobj.count, int(length)))

except ClientException:
raise DownloadException('Key not found.')
Expand Down

0 comments on commit 1f8aff2

Please sign in to comment.