Skip to content

Commit 4a81e28

Browse files
committed
add additional timeout for webhook request
1 parent dab2c41 commit 4a81e28

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)