Skip to content

AttributeError: url on Storage Exception when key not found #93

Description

@Zoramite

When attempting to get a key that does not exist the exception for the NotFoundError is trying to reference request.url which does not exist.

Traceback (mostrecentcalllast):
[...]
file_key=self.bucket.get_key(path)
File"gcloud/storage/bucket.py", line83, inget_keyresponse=self.connection.api_request(method='GET', path=key.path)
File"gcloud/storage/connection.py", line212, inapi_requestraiseexceptions.NotFoundError(response, content)
File"gcloud/storage/exceptions.py", line17, in__init__self.message='GET %s returned a 404.'% (response.url)
File"httplib2/__init__.py", line1680, in__getattr__raiseAttributeError, nameAttributeError: url

Metadata

Metadata

Assignees

Labels

🚨This issue needs some love.api: storageIssues related to the Cloud Storage API.triage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions