Skip to content

Commit

Permalink
Merge pull request #590 from cglewis/main
Browse files Browse the repository at this point in the history
add additional timeout for webhook request
  • Loading branch information
cglewis authored Feb 20, 2022
2 parents 0526c1d + 4a81e28 commit 643df37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PiBuoyV2/services/sense/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def insert_message_data(data):

def send_hook(card):
try:
r = httpx.post(get_url(), json=card)
r = httpx.post(get_url(), json=card, timeout=5.0)
return r.status_code
except Exception as e:
return f'Failed because: {e}, on card: {card}'

0 comments on commit 643df37

Please sign in to comment.