mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
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:
parent
36adbd71d8
commit
48d43f7fea
1 changed files with 2 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue