From d2cb5a3761706e29c5912d7301731fbd96dfcf2c Mon Sep 17 00:00:00 2001 From: hingen <31367001+hingen@users.noreply.github.com> Date: Sun, 21 Jan 2024 12:08:31 +0000 Subject: [PATCH] Change check_for_update to not exit process on server connection error (#629) Co-authored-by: hingen <1627313-hingen@users.noreply.gitlab.com> --- auto_cpufreq/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auto_cpufreq/core.py b/auto_cpufreq/core.py index 76ece278..6b3b5724 100755 --- a/auto_cpufreq/core.py +++ b/auto_cpufreq/core.py @@ -178,7 +178,7 @@ def check_for_update(): except (requests.exceptions.ConnectionError, requests.exceptions.Timeout, requests.exceptions.RequestException, requests.exceptions.HTTPError) as err: print ("Error Connecting to server!") - exit(1) + return False latest_version = latest_release["tag_name"]