j
This commit is contained in:
@@ -25,7 +25,7 @@ from SYS.models import DebugLogger, DownloadError, DownloadMediaResult, Progress
|
||||
from SYS.utils import ensure_directory, sha256_file
|
||||
|
||||
try: # Optional; used for metadata extraction when available
|
||||
from SYS.metadata import extract_ytdlp_tags
|
||||
from SYS.yt_metadata import extract_ytdlp_tags
|
||||
except Exception: # pragma: no cover - optional dependency
|
||||
extract_ytdlp_tags = None # type: ignore[assignment]
|
||||
|
||||
@@ -56,7 +56,7 @@ def _resolve_verify_value(verify_ssl: bool) -> Union[bool, str]:
|
||||
mod = sys.modules.get(mod_name)
|
||||
if mod is None:
|
||||
mod = __import__(mod_name)
|
||||
except Exception:
|
||||
except (ImportError, ModuleNotFoundError):
|
||||
return None
|
||||
|
||||
# Common APIs that return a bundle path
|
||||
|
||||
Reference in New Issue
Block a user