mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
change RaiseError to OP LoadError
This commit is contained in:
parent
9cfa795f47
commit
fc928a1987
1 changed files with 5 additions and 2 deletions
|
|
@ -12,6 +12,7 @@ from openpype.pipeline import (
|
|||
AVALON_CONTAINER_ID,
|
||||
Anatomy,
|
||||
)
|
||||
from openpype.pipeline.load import LoadError
|
||||
from openpype.settings import get_project_settings
|
||||
from .pipeline import containerise
|
||||
from . import lib
|
||||
|
|
@ -149,9 +150,11 @@ class ReferenceLoader(Loader):
|
|||
loaded_containers = []
|
||||
|
||||
if not custom_naming['namespace']:
|
||||
raise ValueError("No namespace specified")
|
||||
raise LoadError("No namespace specified in "
|
||||
"Maya ReferenceLoader settings")
|
||||
elif not custom_naming['group_name']:
|
||||
raise ValueError("No group name specified")
|
||||
raise LoadError("No group name specified in "
|
||||
"Maya ReferenceLoader settings")
|
||||
|
||||
custom_namespace = custom_naming['namespace'].format(
|
||||
asset_name=asset['name'],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue