Skip to content

Commit

Permalink
timeout argument for method 'requests.get'
Browse files Browse the repository at this point in the history
  • Loading branch information
mdiazgoncalves committed Jan 2, 2024
1 parent 720678e commit 1a1aaa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion check_wled.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def main():
"""

try:
response = requests.get('http://' + args.hostname + '/json', timeout=10)
response = requests.get('http://' + args.hostname + '/json', timeout=5)
response.raise_for_status()
except requests.exceptions.RequestException as exception:
status = 2
Expand Down

0 comments on commit 1a1aaa3

Please sign in to comment.