mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Fix crash in validate_parent_type
If the type being checked for is not found (e.g. the library is not installed or is out of date), parent.full_name would be None.
This commit is contained in:
parent
25d08e56cb
commit
442fff69b6
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ def validate_parent_type(node, ns: str, name: str, err_msg: str):
|
||||||
container_type = node.parent_by_type(Object).gir_class
|
container_type = node.parent_by_type(Object).gir_class
|
||||||
if container_type and not container_type.assignable_to(parent):
|
if container_type and not container_type.assignable_to(parent):
|
||||||
raise CompileError(
|
raise CompileError(
|
||||||
f"{container_type.full_name} is not a {parent.full_name}, so it doesn't have {err_msg}"
|
f"{container_type.full_name} is not a {ns}.{name}, so it doesn't have {err_msg}"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue