Skip to content

Commit 973761c

Browse files
committed
lint
1 parent 523ede6 commit 973761c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

comm/base_comm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def register_target(self, target_name: str, f: CommTargetCallback | str) -> None
218218
try:
219219
f = getattr(module, obj)
220220
except AttributeError as e:
221-
raise ImportError("No module named %s" % obj) from e
221+
raise ImportError(f"No module named {obj}") from e
222222
else:
223223
# called with un-dotted string
224224
f = __import__(parts[0])

0 commit comments

Comments
 (0)