Skip to content

Commit 5127a00

Browse files
committed
again
1 parent 973761c commit 5127a00

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

comm/base_comm.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,8 @@ 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(f"No module named {obj}") from e
221+
error_msg = f"No module named {obj}"
222+
raise ImportError(error_msg) from e
222223
else:
223224
# called with un-dotted string
224225
f = __import__(parts[0])

0 commit comments

Comments
 (0)