decode bytes

This commit is contained in:
j 2014-10-04 21:05:56 +02:00
parent a48f039e89
commit afb025c154

View file

@ -17,7 +17,7 @@ def request(action, data):
})
url = 'http://meta.openmedialibrary.com/api/'
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:
return {}