|
|
@ -86,5 +86,7 @@ class Instagram(object):
|
|
|
|
result = self._get_media()
|
|
|
|
result = self._get_media()
|
|
|
|
except requests.exceptions.HTTPError as e:
|
|
|
|
except requests.exceptions.HTTPError as e:
|
|
|
|
raise InstagramError('Failed to retrieve media: {0}'.format(e))
|
|
|
|
raise InstagramError('Failed to retrieve media: {0}'.format(e))
|
|
|
|
|
|
|
|
except json.decoder.JSONDecodeError as e:
|
|
|
|
|
|
|
|
raise InstagramError('Failed to retrieve media: {0}'.format(e))
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
return result
|
|
|
|
return result
|
|
|
|