set RPC timeout to 10s

pull/4/head
stoffu 4 years ago
parent 1bbd0efe4f
commit 5d185fb859
No known key found for this signature in database
GPG Key ID: 41DAB8343A9EC012

@ -40,7 +40,8 @@ class JSONRPC(object):
res = requests.post(
url,
data=json.dumps(inputs),
headers={'content-type': 'application/json'})
headers={'content-type': 'application/json'},
timeout=10)
res = res.json()
assert 'error' not in res, res

Loading…
Cancel
Save