diff --git a/blueprintcompiler/language/adw_breakpoint.py b/blueprintcompiler/language/adw_breakpoint.py index 20d0b89..addbd8a 100644 --- a/blueprintcompiler/language/adw_breakpoint.py +++ b/blueprintcompiler/language/adw_breakpoint.py @@ -96,7 +96,7 @@ class AdwBreakpointSetter(AstNode): # This happens for classes defined by the app itself return - if self.gir_property is None: + if self.gir_property is None and self.property_name is not None: raise CompileError( f"Class {self.gir_class.full_name} does not have a property called {self.property_name}", did_you_mean=(self.property_name, self.gir_class.properties.keys()),