mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
Hound fixes
This commit is contained in:
parent
e3de88e4fe
commit
b3cd5e1ea0
1 changed files with 3 additions and 2 deletions
|
|
@ -231,7 +231,8 @@ class ExistingLayoutLoader(plugin.Loader):
|
|||
for (repr_data, lasset) in layout_data:
|
||||
if not repr_data:
|
||||
raise AssertionError("Representation not found")
|
||||
if not (repr_data.get('data') or repr_data.get('data').get('path')):
|
||||
if not (repr_data.get('data') or
|
||||
repr_data.get('data').get('path')):
|
||||
raise AssertionError("Representation does not have path")
|
||||
if not repr_data.get('context'):
|
||||
raise AssertionError("Representation does not have context")
|
||||
|
|
@ -256,7 +257,7 @@ class ExistingLayoutLoader(plugin.Loader):
|
|||
filename = import_data.get_first_filename()
|
||||
path = Path(filename)
|
||||
|
||||
if not path.name in repr_data.get('data').get('path'):
|
||||
if path.name not in repr_data.get('data').get('path'):
|
||||
continue
|
||||
|
||||
asset_name = path.with_suffix('').name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue