Skip to content

Commit

Permalink
* nemo/utils.py (MultiSetter.__init__): Fix Ruff warning (TRY003).
Browse files Browse the repository at this point in the history
  • Loading branch information
bje- committed Dec 16, 2024
1 parent 9b61394 commit 8e7a801
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nemo/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ def __init__(self, *args):
self.setters = [setter[0] for setter in args]
for setter in self.setters:
if not callable(setter):
raise TypeError("setter not callable")
msg = "setter not callable"
raise TypeError(msg)

def set_capacity(self, value):
"""Broadcast value to all setters."""
Expand Down

0 comments on commit 8e7a801

Please sign in to comment.