Update server/settings/conversion.py

Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
This commit is contained in:
Jakub Ježek 2024-10-02 10:03:28 +02:00 committed by GitHub
parent e299b405fc
commit 8b14e79629
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,11 +9,10 @@ def _convert_imageio_configs_0_4_5(overrides):
imageio_overrides = overrides.get("imageio") or {}
# make sure settings are already converted to profiles
if "ocio_config_profiles" not in imageio_overrides:
ocio_config_profiles = imageio_overrides.get("ocio_config_profiles")
if not ocio_config_profiles:
return
ocio_config_profiles = imageio_overrides["ocio_config_profiles"]
for profile in ocio_config_profiles:
if profile.get("type") != "product_name":
continue