Skip to content

Conversation

@jlowin
Copy link

@jlowin jlowin commented Mar 2, 2016

Closes #1555

If media_link isn’t available (meaning this blob is just a placeholder object), query the API for the download_url. Otherwise, the download will fail because self.media_link is None.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Mar 2, 2016
@jgeewax
Copy link
Contributor

jgeewax commented Mar 2, 2016

Thanks for the patch! I think we may want to try doing something slightly different, maybe factoring out the request pieces into blob._load_metadata() or something like that, and then using that method in bucket.get_blob() as well as here...?

I'll let @dhermes chime in here though.

@jlowin
Copy link
Author

jlowin commented Mar 2, 2016

Sure, definitely leave it to you guys -- just wanted to highlight the problem area!

@jgeewax
Copy link
Contributor

jgeewax commented Mar 2, 2016

Totally -- thanks so much for the PR! :)

@tseaver
Copy link
Contributor

tseaver commented Mar 2, 2016

Thanks for the patch! #1559 has a slightly cleaner implementation, and adds coverage for the error case.

@tseaver tseaver closed this Mar 2, 2016
atulep pushed a commit that referenced this pull request Apr 6, 2023
atulep pushed a commit that referenced this pull request Apr 6, 2023
atulep pushed a commit that referenced this pull request Apr 18, 2023
parthea pushed a commit that referenced this pull request Oct 22, 2023
parthea added a commit that referenced this pull request Nov 24, 2025
* chore(deps): update all dependencies

* revert

Co-authored-by: Anthonios Partheniou <partheniou@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants