mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
Use dict indexing instead of .get to assert existence
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
This commit is contained in:
parent
f62e6c9c50
commit
bfbfdf7067
1 changed files with 1 additions and 1 deletions
|
|
@ -694,7 +694,7 @@ def get_publish_repre_path(instance, repre, only_published=False):
|
|||
|
||||
# Expand the staging dir path in case it's been stored with the root
|
||||
# template syntax
|
||||
anatomy = instance.context.data.get("anatomy")
|
||||
anatomy = instance.context.data["anatomy"]
|
||||
staging_dir = anatomy.fill_root(staging_dir)
|
||||
|
||||
src_path = os.path.normpath(os.path.join(staging_dir, filename))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue