Fixed for KeyboardInterrupt

This commit is contained in:
Dimitris Zlatanidis 2023-03-15 13:02:24 +02:00
parent 6918924dfc
commit 29e7dfb662

View file

@ -39,8 +39,11 @@ class CheckUpdates(Configs):
self.local_chg_txt = Path(self.ponce_repo_path, self.changelog_txt)
self.repo_chg_txt: str = f'{self.ponce_repo_url}{self.changelog_txt}'
http = urllib3.PoolManager()
repo = http.request('GET', self.repo_chg_txt)
try:
http = urllib3.PoolManager()
repo = http.request('GET', self.repo_chg_txt)
except KeyboardInterrupt:
raise SystemExit(1)
if self.local_chg_txt.is_file():
local_date = int(os.stat(self.local_chg_txt).st_size)