mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
Fix - added logging for import error
Without it it would fail inside of imprint func
This commit is contained in:
parent
db18930b94
commit
a550c7e05e
1 changed files with 6 additions and 0 deletions
|
|
@ -53,6 +53,12 @@ class FileLoader(api.Loader):
|
|||
|
||||
comp = stub.import_file(self.fname, comp_name, import_options)
|
||||
|
||||
if not comp:
|
||||
self.log.warning(
|
||||
"Representation id `{}` is failing to load".format(file))
|
||||
self.log.warning("Check host app for alert error.")
|
||||
return
|
||||
|
||||
self[:] = [comp]
|
||||
namespace = namespace or comp_name
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue