Python 3.12+ no longer wraps exceptions in __set_name__, see 55c99d97e1 Backport of fc9c90d9c4 from main
55c99d97e1
fc9c90d9c4