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

Commit a3d4747

Browse files
author
rcoh
committed
Adding more printing
Prints out the cause of the common instagam error
1 parent 95dc1c5 commit a3d4747

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

instagram/bind.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ def _do_api_request(self, url, method="GET", body=None, headers=None):
9999
raise InstagramClientError('Unable to parse response, not valid JSON.')
100100

101101
api_responses = []
102+
if not 'meta' in content_obj:
103+
raise Exception("Meta not present. Object: %s" % content_obj)
102104
status_code = content_obj['meta']['code']
103105
if status_code == 200:
104106
if not self.objectify_response:

0 commit comments

Comments
 (0)