mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
safer data access
Co-authored-by: Roy Nieterau <roy_nieterau@hotmail.com>
This commit is contained in:
parent
7a8aa123ff
commit
8180076c08
1 changed files with 1 additions and 1 deletions
|
|
@ -100,7 +100,7 @@ class LoaderPlugin(list):
|
|||
ext = repre_context.get("ext")
|
||||
if not ext:
|
||||
# Legacy way how to get extensions
|
||||
path = repre_doc["data"].get("path")
|
||||
path = repre_doc.get("data", {}).get("path")
|
||||
if not path:
|
||||
cls.log.info(
|
||||
"Representation doesn't have known source of extension"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue