diff --git a/services/instagram.py b/services/instagram.py index 602bee7..8d5c07f 100644 --- a/services/instagram.py +++ b/services/instagram.py @@ -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: + raise InstagramError('Failed to retrieve media: {0}'.format(e)) else: return result