diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py index d8e1080d8..499e08884 100644 --- a/cyberdrop_dl/__init__.py +++ b/cyberdrop_dl/__init__.py @@ -1 +1 @@ -__version__ = "5.0.57" +__version__ = "5.0.58" diff --git a/cyberdrop_dl/main.py b/cyberdrop_dl/main.py index bd8643d04..7ec67a8f4 100644 --- a/cyberdrop_dl/main.py +++ b/cyberdrop_dl/main.py @@ -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") diff --git a/pyproject.toml b/pyproject.toml index 258d8e865..6ae1452fd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 "] readme = "README.md"