From 71da4a02ecc923c93474b1dfdf7df4dfbacd9dc1 Mon Sep 17 00:00:00 2001 From: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com> Date: Thu, 2 Oct 2025 10:11:50 +0200 Subject: [PATCH] added comments to safe import --- client/ayon_core/lib/transcoding.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/ayon_core/lib/transcoding.py b/client/ayon_core/lib/transcoding.py index 36a0caef27..75f0c8bc4d 100644 --- a/client/ayon_core/lib/transcoding.py +++ b/client/ayon_core/lib/transcoding.py @@ -1519,6 +1519,9 @@ def get_media_mime_type(filepath: str) -> Optional[str]: Optional[str]: Mime type or None if is unknown mime type. """ + # The implementation is identical or better with ayon_api >=1.1.0, + # which is used in AYON launcher >=1.3.0. + # NOTE Remove safe import when AYON launcher >=1.2.0. try: from ayon_api.utils import ( get_media_mime_type_for_content as _ayon_api_func