From e733ed24aa5eee18c82931a2935bd73e96d9ceb6 Mon Sep 17 00:00:00 2001 From: Kadir Can Ozden <101993364+bysiber@users.noreply.github.com> Date: Fri, 20 Feb 2026 10:49:04 +0300 Subject: [PATCH] Fix FrozenInstanceError displaying empty error message in tracebacks --- src/attr/exceptions.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/attr/exceptions.py b/src/attr/exceptions.py index 3b7abb815..af7a4782d 100644 --- a/src/attr/exceptions.py +++ b/src/attr/exceptions.py @@ -19,6 +19,9 @@ class FrozenError(AttributeError): msg = "can't set attribute" args: ClassVar[tuple[str]] = [msg] + def __init__(self): + super().__init__(self.msg) + class FrozenInstanceError(FrozenError): """