Skip to content

Commit

Permalink
Merge pull request #64 from sibowsb/fix-blob-not-found-err-msg
Browse files Browse the repository at this point in the history
Fix blob-not-found error message for AWS
  • Loading branch information
scottwernervt committed May 22, 2020
2 parents 7845c7b + e4b7756 commit ba71c17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions AUTHORS.rst
Expand Up @@ -14,3 +14,4 @@ Contributors
* James Stewart `@JamesStewy <https://github.com/JamesStewy>`_
* Matt Carr `@matt-carr <https://github.com/matt-carr>`_
* Sibo Wang `@sibowsb <https://github.com/sibowsb>`_
2 changes: 1 addition & 1 deletion src/cloudstorage/drivers/amazon.py
Expand Up @@ -180,7 +180,7 @@ def _make_blob(self, container: Container, object_summary) -> Blob:
error_code = int(err.response["Error"]["Code"])
if error_code == 404:
raise NotFoundError(
messages.BLOB_NOT_FOUND % (container.name, object_summary.key)
messages.BLOB_NOT_FOUND % (object_summary.key, container.name)
)

raise CloudStorageError(
Expand Down

0 comments on commit ba71c17

Please sign in to comment.