mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-02-06 08:46:21 +01:00
Fixed for KeyboardInterrupt
This commit is contained in:
parent
6918924dfc
commit
29e7dfb662
1 changed files with 5 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue