OP-4679 - check comment on context

Check for context must be preserved until old Pyblish is completely eradicated as comment could be filled after collection phase, therefore not caught by collector.
This commit is contained in:
Petr Kalis 2023-01-10 18:16:31 +01:00
parent 36adbd71d8
commit 48d43f7fea

View file

@ -45,7 +45,8 @@ class IntegrateFtrackNote(pyblish.api.InstancePlugin):
host_name = context.data["hostName"]
app_name = context.data["appName"]
app_label = context.data["appLabel"]
comment = instance.data["comment"]
# context comment is fallback until old Pyblish is removed
comment = instance.data["comment"] or context.data.get("comment")
if not comment:
self.log.info("Comment is not set.")
else: