mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2025-07-09 03:04:26 -04:00
Merge pull request #822 from 736-c41-2c1-e464fc974/patch-1
healthcheck.py: Fail on non 200 status
This commit is contained in:
commit
64d746a7b9
@ -12,4 +12,4 @@ response = requests.post(
|
|||||||
},
|
},
|
||||||
timeout=60
|
timeout=60
|
||||||
)
|
)
|
||||||
# if server unavailable then requests with raise exception and healthcheck will fail
|
response.raise_for_status() # if server unavailable then requests with raise exception and healthcheck will fail
|
||||||
|
Loading…
x
Reference in New Issue
Block a user