fix(gloabal): validator didn't work properly

This commit is contained in:
Jakub Jezek 2019-11-04 19:37:33 +01:00
parent 66d0b1b253
commit a188d37d62

View file

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