Merged in hotfix/validate_ftrack_attributes (pull request #353)

Hotfix/validate ftrack attributes

Approved-by: Milan Kolar <milan@orbi.tools>
This commit is contained in:
Jakub Ježek 2019-11-05 10:12:32 +00:00 committed by Milan Kolar
commit 2cb1c7efe3
7 changed files with 32 additions and 10 deletions

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