From f9a0a72b3ab98a2a7c2b1a0033fb37902955fecb Mon Sep 17 00:00:00 2001 From: Milan Kolar Date: Fri, 4 Dec 2020 23:52:47 +0100 Subject: [PATCH] validate ftrack attributes from settings --- .../ftrack/publish/validate_custom_ftrack_attributes.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/pype/plugins/ftrack/publish/validate_custom_ftrack_attributes.py b/pype/plugins/ftrack/publish/validate_custom_ftrack_attributes.py index ed3fdc75ac..b141a8bcb7 100644 --- a/pype/plugins/ftrack/publish/validate_custom_ftrack_attributes.py +++ b/pype/plugins/ftrack/publish/validate_custom_ftrack_attributes.py @@ -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