mirror of
https://github.com/jlengrand/bugsink.git
synced 2026-03-10 08:01:17 +00:00
Add timeouts to external calls to service
following the principle 'always set timeouts when making network calls'
This commit is contained in:
@@ -123,6 +123,7 @@ def slack_backend_send_test_message(webhook_url, project_name, display_name, ser
|
||||
webhook_url,
|
||||
data=json.dumps(data),
|
||||
headers={"Content-Type": "application/json"},
|
||||
timeout=5,
|
||||
)
|
||||
|
||||
result.raise_for_status()
|
||||
@@ -201,6 +202,7 @@ def slack_backend_send_alert(
|
||||
webhook_url,
|
||||
data=json.dumps(data),
|
||||
headers={"Content-Type": "application/json"},
|
||||
timeout=5,
|
||||
)
|
||||
|
||||
result.raise_for_status()
|
||||
|
||||
Reference in New Issue
Block a user