Skip to content

Commit 643df37

Browse files
authored
Merge pull request #590 from cglewis/main
add additional timeout for webhook request
2 parents 0526c1d + 4a81e28 commit 643df37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PiBuoyV2/services/sense/hooks.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def insert_message_data(data):
5050

5151
def send_hook(card):
5252
try:
53-
r = httpx.post(get_url(), json=card)
53+
r = httpx.post(get_url(), json=card, timeout=5.0)
5454
return r.status_code
5555
except Exception as e:
5656
return f'Failed because: {e}, on card: {card}'

0 commit comments

Comments
 (0)