Skip to content

Bulk asynchronous downloader for multiple file hosts

fix print statements appearing for filelocks

Jules-WinnfieldX0fc889a8cdfc
diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py
index 7ab1c2280..7756f8bdb 100644
--- a/cyberdrop_dl/__init__.py
+++ b/cyberdrop_dl/__init__.py
@@ -1 +1 @@
-__version__ = "5.1.73"
\ No newline at end of file
+__version__ = "5.1.74"
\ No newline at end of file
diff --git a/cyberdrop_dl/utils/utilities.py b/cyberdrop_dl/utils/utilities.py
index 78e623654..5515cf060 100644
--- a/cyberdrop_dl/utils/utilities.py
+++ b/cyberdrop_dl/utils/utilities.py
@@ -100,7 +100,8 @@ async def log(message: [str, Exception], level: int) -> None:
async def log_debug(message: [str, Exception], level: int) -> None:
"""Simple logging function"""
- logger_debug.log(level, message)
+ if os.getenv("PYCHARM_HOSTED") is not None:
+ logger_debug.log(level, message)
async def log_with_color(message: str, style: str, level: int) -> None:
diff --git a/pyproject.toml b/pyproject.toml
index 70adfc069..6a6475bd0 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cyberdrop-dl"
-version = "5.1.73"
+version = "5.1.74"
description = "Bulk downloader for multiple file hosts"
authors = ["Jules Winnfield <[email protected]>"]
readme = "README.md"