From 3f8b38d21943d1ac447b154e145ece0e693b008e Mon Sep 17 00:00:00 2001 From: James Westman Date: Mon, 18 Apr 2022 15:35:19 -0500 Subject: [PATCH] Fix crash in action widget syntax --- blueprintcompiler/language/response_id.py | 3 +++ 1 file changed, 3 insertions(+) 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: