decode bytes

This commit is contained in:
j 2014-10-04 21:05:56 +02:00
parent a48f039e89
commit afb025c154
1 changed files with 1 additions and 1 deletions

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 {}