Extract logging outside of function.

This commit is contained in:
Frédéric Tronel
2026-08-29 13:56:04 +02:00
parent 5bbdfe9929
commit 4658cc16e0
+1 -1
View File
@@ -8,6 +8,7 @@ from shutil import which
from typeguard import typechecked
logger = logging.getLogger(__name__)
class MissingToolError(Exception):
pass
@@ -29,7 +30,6 @@ def check_required_tools() -> tuple[bool,dict[str,str]]:
- bool: True if all optional tools are installed, False otherwise
- dict[str, str]: dictionary containing the paths to all tools
"""
logger = logging.getLogger(__name__)
all_optional_tools = True
paths = {}
required = ['ffmpeg', 'ffprobe', 'mkvmerge', 'mkvinfo']