Skip to content

Commit 3e416c2

Browse files
CarreauMeeseeksDev[bot]
authored andcommitted
Backport PR #330: more complete error message
1 parent 50c92b1 commit 3e416c2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jupyter_client/manager.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,9 +229,10 @@ def start_kernel(self, **kw):
229229
"""
230230
if self.transport == 'tcp' and not is_local_ip(self.ip):
231231
raise RuntimeError("Can only launch a kernel on a local interface. "
232+
"This one is not: %s."
232233
"Make sure that the '*_address' attributes are "
233234
"configured properly. "
234-
"Currently valid addresses are: %s" % local_ips()
235+
"Currently valid addresses are: %s" % (self.ip, local_ips())
235236
)
236237

237238
# write connection file / get default ports

0 commit comments

Comments
 (0)