From 0a6660808529ad068e8fdd4dac34bb978b647e04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Hells=C3=A9n?= <tlovinator@gmail.com> Date: Mon, 19 Dec 2022 02:33:44 +0100 Subject: [PATCH] Fix exit code --- discord_rss_bot/healthcheck.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discord_rss_bot/healthcheck.py b/discord_rss_bot/healthcheck.py index 855ce42..333e6e1 100644 --- a/discord_rss_bot/healthcheck.py +++ b/discord_rss_bot/healthcheck.py @@ -11,9 +11,9 @@ def healthcheck(): try: r = requests.get("http://localhost:5000") if r.ok: - sys.exit(1) + sys.exit(0) except requests.exceptions.RequestException: - sys.exit(0) + sys.exit(1) if __name__ == "__main__":