From 5b67dc07a28b04b21d8491bd2b5d06e0299ee592 Mon Sep 17 00:00:00 2001 From: Talley Lambert Date: Thu, 15 Feb 2024 20:33:28 -0500 Subject: [PATCH] refactor: pragma --- src/psygnal/_signal.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/psygnal/_signal.py b/src/psygnal/_signal.py index e685ea8a..6ef38e8f 100644 --- a/src/psygnal/_signal.py +++ b/src/psygnal/_signal.py @@ -200,8 +200,8 @@ class Emitter: # already caught and warned about it in SignalGroup.__init_subclass__. pass else: - # otherwise, - raise AttributeError( + # otherwise, give an informative error message + raise AttributeError( # pragma: no cover "An attempt to cache a SignalInstance on instance " f"{instance} failed. Please report this with your use case at " "https://github.com/pyapp-kit/psygnal/issues."