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

Commit

Permalink
Do check for removing handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Jules-WinnfieldX committed Dec 6, 2023
1 parent f8310ca commit 39b9915
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 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.0.57"
__version__ = "5.0.58"
3 changes: 2 additions & 1 deletion cyberdrop_dl/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ async def director(manager: Manager) -> None:
configs_to_run = list(set(configs) - set(configs_ran))
manager.config_manager.change_config(configs_to_run[0])
configs_ran.append(configs_to_run[0])
logger.removeHandler(logger.handlers[0])
if len(logger.handlers) > 0:
logger.removeHandler(logger.handlers[0])

logger.setLevel(logging.DEBUG)
file_handler = logging.FileHandler(manager.path_manager.main_log, mode="w")
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.0.57"
version = "5.0.58"
description = "Bulk downloader for multiple file hosts"
authors = ["Jules Winnfield <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit 39b9915

Please sign in to comment.