Skip to content

Commit

Permalink
adding timeout to get
Browse files Browse the repository at this point in the history
  • Loading branch information
jbruce12000 committed May 22, 2022
1 parent 71b88a9 commit d6f4f71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion watcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

def get_stats():
try:
r = requests.get(kiln_url)
r = requests.get(kiln_url,timeout=1)
return r.json()
except:
return {}
Expand Down

0 comments on commit d6f4f71

Please sign in to comment.