Skip to content

Commit

Permalink
refactor: pragma
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 committed Feb 16, 2024
1 parent 61b0ef8 commit 5b67dc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/psygnal/_signal.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit 5b67dc0

Please sign in to comment.