Skip to content

Commit

Permalink
Fix syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
jlorrain authored and ClementHector committed Feb 7, 2022
1 parent 3e23455 commit 9be0d40
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,12 @@ def process(self, instance):
logger=self.log
)
anatomy = context.data.get('anatomy')
anatomy_filled = anatomy.format(instance.data.get('anatomyData'))
pub_workfile_path = anatomy_filled[profile["template_name"]]["folder"]
anatomy_filled = anatomy.format(
instance.data.get('anatomyData')
)
pub_workfile_path = anatomy_filled.get(
profile["template_name"]
).get("folder")

if not is_subdir(scene_name, pub_workfile_path):
raise RuntimeError("Maya workspace is not set correctly.")

0 comments on commit 9be0d40

Please sign in to comment.