mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
fix layout
This commit is contained in:
parent
77ce35251a
commit
92a35bc7d2
1 changed files with 8 additions and 5 deletions
|
|
@ -159,20 +159,23 @@ class ReferenceLoader(Loader):
|
|||
)
|
||||
elif custom_naming.strip()[0] == ':':
|
||||
raise ValueError(
|
||||
"Wrong format for namespace, \
|
||||
missing content before ':' separator"
|
||||
"Wrong format for namespace, missing content before ':' "
|
||||
"separator"
|
||||
)
|
||||
elif custom_naming.strip()[-1] == ':':
|
||||
raise ValueError(
|
||||
"Wrong format for namespace, \
|
||||
missing content after ':' separator"
|
||||
"Wrong format for namespace, missing content after ':' "
|
||||
"separator"
|
||||
)
|
||||
|
||||
custom_naming = custom_naming.format(
|
||||
asset_name=asset['name'],
|
||||
asset_type=asset['type'],
|
||||
subset=subset['name'],
|
||||
family=subset['data'].get('family') or subset['data']['families'][0] # noqa
|
||||
family=(
|
||||
subset['data'].get('family') or
|
||||
subset['data']['families'][0]
|
||||
)
|
||||
)
|
||||
|
||||
namespace = custom_naming.split(':')[0]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue