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 was archived by the owner on Oct 4, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 4, 2023. It is now read-only.
raise ImgurClientError('JSON decoding of response failed.') imgurpython.helpers.error.ImgurClientError: JSON decoding of response failed. #74
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
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
Activity
Backscratcher commentedon Oct 18, 2016
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"GalleryAlbum- because it has no type.wrap your code with try/except like:
try: your code here except Exception: passor make an if for it handle this situation
monajalal commentedon Oct 18, 2016
I get similar error here:
http://stackoverflow.com/questions/40115380/imgurpython-helpers-error-imgurclientratelimiterror-rate-limit-exceeded
The previous one was fixed
On Tue, Oct 18, 2016 at 7:24 AM, Backscratcher notifications@github.com
wrote: