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