mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
raise from previous exception
This commit is contained in:
parent
50531fa35a
commit
fbf370befa
1 changed files with 5 additions and 7 deletions
|
|
@ -886,11 +886,10 @@ def get_representation_path(
|
|||
try:
|
||||
template = repre_entity["attrib"]["template"]
|
||||
|
||||
except KeyError:
|
||||
except KeyError as exc:
|
||||
raise InvalidRepresentationContext(
|
||||
"Representation document does not"
|
||||
" contain template in data ('data.template')"
|
||||
)
|
||||
"Failed to receive template from representation entity."
|
||||
) from exc
|
||||
|
||||
try:
|
||||
context = copy.deepcopy(repre_entity["context"])
|
||||
|
|
@ -901,9 +900,8 @@ def get_representation_path(
|
|||
|
||||
except TemplateUnsolved as exc:
|
||||
raise InvalidRepresentationContext(
|
||||
"Couldn't resolve representation template with available data."
|
||||
f" Reason: {str(exc)}"
|
||||
)
|
||||
"Failed to resolve representation template with available data."
|
||||
) from exc
|
||||
|
||||
return path.normalized()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue