mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
Update openpype/hosts/traypublisher/plugins/publish/validate_colorspace.py
Co-authored-by: Roy Nieterau <roy_nieterau@hotmail.com>
This commit is contained in:
parent
760adc87ba
commit
ed3a2556e2
1 changed files with 7 additions and 6 deletions
|
|
@ -35,14 +35,15 @@ class ValidateColorspace(pyblish.api.InstancePlugin,
|
|||
if config_path not in config_colorspaces:
|
||||
colorspaces = get_ocio_config_colorspaces(config_path)
|
||||
if not colorspaces.get("colorspaces"):
|
||||
message = (
|
||||
f"OCIO config '{config_path}' does not contain any "
|
||||
"colorspaces. This is an error in the OCIO config. "
|
||||
"Contact your pipeline TD.",
|
||||
)
|
||||
raise PublishValidationError(
|
||||
title="Colorspace validation",
|
||||
message=f"OCIO config '{config_path}' does not contain " # noqa
|
||||
f"any colorspaces. This is error in config. "
|
||||
"Contact your pipeline TD.",
|
||||
description=f"OCIO config '{config_path}' does not "
|
||||
f"contain any colorspaces. This is error "
|
||||
"in config. Contact your pipeline TD."
|
||||
message=message,
|
||||
description=message
|
||||
)
|
||||
config_colorspaces[config_path] = set(
|
||||
colorspaces["colorspaces"])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue