From 318d835c8806105c3e9c17d9db76e8f2cd9ffd2a Mon Sep 17 00:00:00 2001 From: Kellermann Date: Wed, 1 Jun 2022 20:51:11 +0200 Subject: [PATCH] revert --- source/daily_challenge.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/source/daily_challenge.py b/source/daily_challenge.py index a56d46f..e99af9c 100644 --- a/source/daily_challenge.py +++ b/source/daily_challenge.py @@ -161,7 +161,10 @@ def find_todays_product_from_db(): return product if __name__ == "__main__": - - start_challenges() - sys.exit(-1) - + set_todays_product() + try: + start_challenges() + sys.exit(-1) + except KeyboardInterrupt: + print("Ending") + sys.exit(-1)