Fix - added logging for import error

Without it it would fail inside of imprint func
This commit is contained in:
Petr Kalis 2020-11-06 11:35:31 +01:00
parent db18930b94
commit a550c7e05e

View file

@ -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