Skip to content
This repository has been archived by the owner on Apr 25, 2019. It is now read-only.

Commit

Permalink
Adding more printing
Browse files Browse the repository at this point in the history
Prints out the cause of the common instagam error
  • Loading branch information
rcoh committed Dec 9, 2013
1 parent 95dc1c5 commit a3d4747
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions instagram/bind.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ def _do_api_request(self, url, method="GET", body=None, headers=None):
raise InstagramClientError('Unable to parse response, not valid JSON.')

api_responses = []
if not 'meta' in content_obj:
raise Exception("Meta not present. Object: %s" % content_obj)
status_code = content_obj['meta']['code']
if status_code == 200:
if not self.objectify_response:
Expand Down

0 comments on commit a3d4747

Please sign in to comment.