Fix exit code

This commit is contained in:
Joakim Hellsén 2022-12-19 02:33:44 +01:00
commit 0a66608085
No known key found for this signature in database
GPG key ID: 01FD861E3DAC09AC

View file

@ -11,9 +11,9 @@ def healthcheck():
try:
r = requests.get("http://localhost:5000")
if r.ok:
sys.exit(1)
except requests.exceptions.RequestException:
sys.exit(0)
except requests.exceptions.RequestException:
sys.exit(1)
if __name__ == "__main__":