decode bytes
This commit is contained in:
parent
a48f039e89
commit
afb025c154
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ def request(action, data):
|
||||||
})
|
})
|
||||||
url = 'http://meta.openmedialibrary.com/api/'
|
url = 'http://meta.openmedialibrary.com/api/'
|
||||||
try:
|
try:
|
||||||
return json.loads(read_url(url, data, timeout=60))['data']
|
return json.loads(read_url(url, data, timeout=60).decode('utf-8'))['data']
|
||||||
except:
|
except:
|
||||||
return {}
|
return {}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue