Skip to content

Commit b992ba1

Browse files
authored
Merge pull request #331 from jupyter/auto-backport-of-pr-330
Backport PR #330 on branch 5.x
2 parents 50c92b1 + 3e416c2 commit b992ba1

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)