better log message

This commit is contained in:
Jakub Trllo 2022-04-22 18:27:30 +02:00
parent e311a48ef4
commit 7c46088644

View file

@ -43,12 +43,15 @@ class CollectSceneLoadedVersions(pyblish.api.ContextPlugin):
io.find({"_id": {"$in": _repr_ids}}, projection={"parent": 1})
}
# QUESTION should we add same representation id when loaded multiple
# times?
for con in _containers:
repre_id = con["representation"]
version_id = version_by_repr.get(repre_id)
if version_id is None:
self.log.warning((
"Skipping container, did not find version document. {}"
"Skipping container,"
" did not find representation document. {}"
).format(str(con)))
continue