mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
flame: improving loading with exception
This commit is contained in:
parent
cde1caaa91
commit
4cfd22b639
1 changed files with 7 additions and 1 deletions
|
|
@ -97,7 +97,13 @@ class IntegrateBatchGroup(pyblish.api.InstancePlugin):
|
|||
)
|
||||
if Loader:
|
||||
# load to flame by representation context
|
||||
op_pipeline.load.load_with_repre_context(Loader, repre_context)
|
||||
try:
|
||||
op_pipeline.load.load_with_repre_context(
|
||||
Loader, repre_context)
|
||||
except op_pipeline.load.IncompatibleLoaderError as msg:
|
||||
self.log.error(
|
||||
"Check allowed representations for Loader `{}` "
|
||||
"in settings > error: {}".format(Loader.__name__, msg))
|
||||
else:
|
||||
self.log.warning(
|
||||
"Something got wrong and there is not Loader found for "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue