diff --git a/blueprintcompiler/language/response_id.py b/blueprintcompiler/language/response_id.py index 6a2f530..6fe6e3c 100644 --- a/blueprintcompiler/language/response_id.py +++ b/blueprintcompiler/language/response_id.py @@ -56,6 +56,9 @@ class ResponseId(AstNode): from .gobject_object import Object container_type = self.parent_by_type(Object).gir_class + if container_type is None: + return + gir = self.root.gir for namespace, name in ResponseId.ALLOWED_PARENTS: