Skip to content

Commit

Permalink
Fix runtime error for #41 (#44)
Browse files Browse the repository at this point in the history
* Bump pydantic from 1.10.5 to 1.10.6 (#40) (#42)

Bumps [pydantic](https://github.com/pydantic/pydantic) from 1.10.5 to 1.10.6.
- [Release notes](https://github.com/pydantic/pydantic/releases)
- [Changelog](https://github.com/pydantic/pydantic/blob/v1.10.6/HISTORY.md)
- [Commits](pydantic/pydantic@v1.10.5...v1.10.6)

---
updated-dependencies:
- dependency-name: pydantic
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* add cli repo

* fix runtime error #41 and bump up ver

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
KJHJason and dependabot[bot] authored Mar 18, 2023
1 parent bd25aed commit 04f04fe
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "Cultured-Downloader-CLI"]
path = Cultured-Downloader-CLI
url = https://github.com/KJHJason/Cultured-Downloader-CLI
1 change: 1 addition & 0 deletions Cultured-Downloader-CLI
2 changes: 1 addition & 1 deletion src/utils/crucial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__author__ = "KJHJason"
__copyright__ = "Copyright 2022 KJHJason"
__license__ = "GPL-3.0"
__version__ = "4.2.2"
__version__ = "4.2.3"
3 changes: 2 additions & 1 deletion src/utils/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ async def async_download_file(url_info: tuple[str, str], folder_path: pathlib.Pa
async for chunk in response.aiter_bytes(chunk_size=C.CHUNK_SIZE):
await f.write(chunk)
except (httpx.ConnectError, httpx.ConnectTimeout, httpx.ReadTimeout, httpx.HTTPStatusError, httpx.StreamError):
await async_remove_file(file_path)
if file_path is not None:
await async_remove_file(file_path)
if (retry_counter == C.MAX_RETRIES):
failed_downloads_arr.append(
(url_info, website, folder_path)
Expand Down

0 comments on commit 04f04fe

Please sign in to comment.