better error message

This commit is contained in:
Jakub Jezek 2023-08-30 15:46:59 +02:00
parent a4e876792a
commit 3292114e21
No known key found for this signature in database
GPG key ID: 730D7C02726179A7

View file

@ -257,8 +257,7 @@ def parse_colorspace_from_filepath(
"""
if not colorspaces and not config_path:
raise ValueError(
"You need to provide `config_path` if you don't "
"want to provide input `colorspaces`."
"Must provide `config_path` if `colorspaces` is not provided."
)
colorspaces = colorspaces or get_ocio_config_colorspaces(config_path)