mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-18 10:26:29 +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
|
||||
|
||||
### 4.9.7 - 07/01/2024
|
||||
- Fixed:
|
||||
* Fix urllib3 KeyError: 'content-length'
|
||||
|
||||
### 4.9.6 - 16/12/2023
|
||||
- Added:
|
||||
* slackdce repository (Thanks to rizitis)
|
||||
|
|
|
@ -110,7 +110,7 @@ class CheckUpdates(Configs):
|
|||
f'Failed to connect to {repo_chg_txt}\n')
|
||||
repo_size: int = 0
|
||||
else:
|
||||
repo_size: int = int(repo.headers['Content-Length'])
|
||||
repo_size: int = int(repo.headers.get('content-length'))
|
||||
|
||||
if local_chg_txt.is_file():
|
||||
local_size: int = int(os.stat(local_chg_txt).st_size)
|
||||
|
|
Loading…
Reference in a new issue