From 78817a91939b067381ca4ea572b27f4dcc45009b Mon Sep 17 00:00:00 2001 From: Matthias Bilger Date: Fri, 3 Jan 2020 19:43:12 +0100 Subject: [PATCH] fixed check --- bibcheck.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bibcheck.py b/bibcheck.py index 90f8604..b898d26 100644 --- a/bibcheck.py +++ b/bibcheck.py @@ -20,7 +20,7 @@ def main(): allinfo += check(user, pwd) if 'HEALTHCHECK_URL' in os.environ: requests.post(f"{os.environ['HEALTHCHECK_URL']}/start", data='\n'.join(allinfo).encode('utf8')) - if os.environ['RUN_FOREVER'] == 'False': + if 'RUN_FOREVER' in os.environ and os.environ['RUN_FOREVER'] == 'False': break now = datetime.datetime.utcnow