mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-30 20:34:38 +01:00
Fix KeyError: 'content-length'
This commit is contained in:
parent
f53faa0367
commit
1ab43bdc12
2 changed files with 5 additions and 1 deletions
|
@ -1,5 +1,9 @@
|
||||||
## slpkg - ChangeLog
|
## slpkg - ChangeLog
|
||||||
|
|
||||||
|
### 4.9.7 - 07/01/2024
|
||||||
|
- Fixed:
|
||||||
|
* Fix urllib3 KeyError: 'content-length'
|
||||||
|
|
||||||
### 4.9.6 - 16/12/2023
|
### 4.9.6 - 16/12/2023
|
||||||
- Added:
|
- Added:
|
||||||
* slackdce repository (Thanks to rizitis)
|
* slackdce repository (Thanks to rizitis)
|
||||||
|
|
|
@ -110,7 +110,7 @@ class CheckUpdates(Configs):
|
||||||
f'Failed to connect to {repo_chg_txt}\n')
|
f'Failed to connect to {repo_chg_txt}\n')
|
||||||
repo_size: int = 0
|
repo_size: int = 0
|
||||||
else:
|
else:
|
||||||
repo_size: int = int(repo.headers['Content-Length'])
|
repo_size: int = int(repo.headers.get('content-length'))
|
||||||
|
|
||||||
if local_chg_txt.is_file():
|
if local_chg_txt.is_file():
|
||||||
local_size: int = int(os.stat(local_chg_txt).st_size)
|
local_size: int = int(os.stat(local_chg_txt).st_size)
|
||||||
|
|
Loading…
Add table
Reference in a new issue