Skip to content
This repository was archived by the owner on Jan 13, 2022. It is now read-only.

Commit 4712fac

Browse files
committed
changed content.decode() to content since it's previously decoded
1 parent 9d0f673 commit 4712fac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

instagram/bind.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def _do_api_request(self, url, method="GET", body=None, headers=None):
126126
if response['status'] == '503' or response['status'] == '429':
127127
raise InstagramAPIError(response['status'], "Rate limited", "Your client is making too many request per second")
128128
try:
129-
content_obj = simplejson.loads(content.decode())
129+
content_obj = simplejson.loads(content)
130130
except ValueError:
131131
raise InstagramClientError('Unable to parse response, not valid JSON.', status_code=response['status'])
132132
# Handle OAuthRateLimitExceeded from Instagram's Nginx which uses different format to documented api responses

0 commit comments

Comments
 (0)