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