validate ftrack attributes from settings

This commit is contained in:
Milan Kolar 2020-12-04 23:52:47 +01:00
parent c8889b712b
commit f9a0a72b3a

View file

@ -61,12 +61,8 @@ class ValidateFtrackAttributes(pyblish.api.InstancePlugin):
"Missing FTrack Task entity in context")
host = pyblish.api.current_host()
to_check = (
context.data["project_settings"]
["ftrack"]
.get(host, {})
.get("ftrack_custom_attributes")
)
to_check = self.ftrack_custom_attributes.get(host, {}))
if not to_check:
self.log.warning("ftrack_attributes preset not found")
return