This commit is contained in:
j 2014-05-26 00:23:48 +02:00
commit 5e606b21d8
2 changed files with 8 additions and 6 deletions

View file

@ -16,7 +16,7 @@ def request(action, data):
})
url = 'http://meta.openmedialibrary.com/api/'
try:
return json.loads(read_url(url, data))['data']
return json.loads(read_url(url, data, timeout=60))['data']
except:
return {}