From 79bbdab3fcd57599539657f190316224ae030b2b Mon Sep 17 00:00:00 2001 From: cgbsat Date: Sat, 11 May 2019 17:24:03 +0000 Subject: [PATCH] Exit on authentication failure (fixes #8) --- schedule_single_station.py | 1 + 1 file changed, 1 insertion(+) diff --git a/schedule_single_station.py b/schedule_single_station.py index 8d752c3..f62a686 100755 --- a/schedule_single_station.py +++ b/schedule_single_station.py @@ -308,6 +308,7 @@ def main(): }) if result.url.endswith("/accounts/login/"): logging.info("Authentication failed") + sys.exit(-1) else: logging.info("Authentication successful")