mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2024-11-21 07:54:08 -06:00
Add timeout to requests
This commit is contained in:
parent
822f83407a
commit
1837ee6e85
@ -16,7 +16,7 @@ def spylnxRequest(target, headers):
|
||||
# Sends a REST GET request to Spylnx and returns the
|
||||
# result in JSON
|
||||
url = splynx_api_url + "/api/2.0/" + target
|
||||
r = requests.get(url, headers=headers)
|
||||
r = requests.get(url, headers=headers, timeout=10)
|
||||
return r.json()
|
||||
|
||||
def getTariffs(headers):
|
||||
|
Loading…
Reference in New Issue
Block a user