mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +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")
|
ext = repre_context.get("ext")
|
||||||
if not ext:
|
if not ext:
|
||||||
# Legacy way how to get extensions
|
# Legacy way how to get extensions
|
||||||
path = repre_doc["data"].get("path")
|
path = repre_doc.get("data", {}).get("path")
|
||||||
if not path:
|
if not path:
|
||||||
cls.log.info(
|
cls.log.info(
|
||||||
"Representation doesn't have known source of extension"
|
"Representation doesn't have known source of extension"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue