You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.
I think there is a problem with Your image_file_name, try with something like this: image_file_name = 'images/{0}.{1}'.format(search[i].id, type) <- but still you need to parse type because it comes in format like "image/gif"
It is not the only issue, I ran your code and it will fail on objects like GalleryAlbum - because it has no type.
wrap your code with try/except like: try: your code here except Exception: pass
or make an if for it handle this situation
On Tue, Oct 18, 2016 at 7:24 AM, Backscratcher [email protected]
wrote:
I think there is a problem with Your image_file_name, try with
something like this: image_file_name = 'images/{0}.{1}'.format(search[i].id,
type) <- but still you need to parse type because it comes in format
like "image/gif"
It is not the only issue, I ran your code and it will fail on
objects like GalleryAlbum - because it has no type. wrap your code
with try/except like: try: your code here except Exception: pass or
make an if for it handle this situation
What should I do when I get the following error in the middle of my running code? What's the cause for it?
http://stackoverflow.com/questions/40099046/raise-imgurclienterrorjson-decoding-of-response-failed-imgurpython-helpers
My code is:
The text was updated successfully, but these errors were encountered: