Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
try except around transition config.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jules-WinnfieldX committed Jan 26, 2024
1 parent 933fd15 commit 3aaeb61
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cyberdrop_dl/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "5.1.51"
__version__ = "5.1.52"
7 changes: 5 additions & 2 deletions cyberdrop_dl/utils/transfer/first_time_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,11 @@ def startup(self) -> None:
(APP_STORAGE / "download_history.sqlite").rename(OLD_FILES / "download_history2.sqlite")

if Path("./config.yaml").is_file():
self.transfer_v4_config(Path("./config.yaml"), "Imported V4")
self.update_default_config(APP_STORAGE / "Cache" / "cache.yaml", "Imported V4")
try:
self.transfer_v4_config(Path("./config.yaml"), "Imported V4")
self.update_default_config(APP_STORAGE / "Cache" / "cache.yaml", "Imported V4")
except Exception as e:
pass
Path("./config.yaml").rename(OLD_FILES / "config.yaml")

if Path("./downloader.log").is_file():
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cyberdrop-dl"
version = "5.1.51"
version = "5.1.52"
description = "Bulk downloader for multiple file hosts"
authors = ["Jules Winnfield <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit 3aaeb61

Please sign in to comment.