From fb33dc1164ac07f7f30f3cc8e87d4a410eb0d835 Mon Sep 17 00:00:00 2001 From: Charles Whittington Date: Sun, 3 Nov 2024 22:04:43 -0500 Subject: [PATCH] Raise instance/subclass --- tests/test_node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_node.py b/tests/test_node.py index 485d8be..c281eb1 100644 --- a/tests/test_node.py +++ b/tests/test_node.py @@ -29,7 +29,7 @@ def layout(self, root, viewport): @prep_style_class class BrokenStyle(BaseStyle): def reapply(self): - raise Exception + raise AttributeError("Missing attribute, node not ready for style application") class IntrinsicSize(BaseIntrinsicSize): pass