You've already forked LibreTranslate
mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2025-11-23 22:04:43 +02:00
healthcheck.py: Fail on non 200 status
This way the health check will also fail on 500 and similar
This commit is contained in:
committed by
GitHub
parent
15f7ffc7f1
commit
e30572255c
@@ -12,4 +12,4 @@ response = requests.post(
|
||||
},
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user