Skip to content

Commit 131cfb3

Browse files
committed
Fix an issue when calling get_services() in Python 3.
(This now matches the response decoding already used in `_get()`. It was never noticed because tests didn't cover it.)
1 parent 24db8ef commit 131cfb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

embedly/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def get_services(self):
6464
resp, content = http.request(url, headers=headers)
6565

6666
if resp['status'] == '200':
67-
resp_data = json.loads(content)
67+
resp_data = json.loads(content.decode('utf-8'))
6868
self.services = resp_data
6969

7070
# build the regex that we can use later

0 commit comments

Comments
 (0)