Skip to content

Commit 36751d3

Browse files
authored
Merge pull request #330 from stonebig/patch-1
more complete error message
2 parents 77784a6 + 41c5954 commit 36751d3

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
@@ -219,9 +219,10 @@ def start_kernel(self, **kw):
219219
"""
220220
if self.transport == 'tcp' and not is_local_ip(self.ip):
221221
raise RuntimeError("Can only launch a kernel on a local interface. "
222+
"This one is not: %s."
222223
"Make sure that the '*_address' attributes are "
223224
"configured properly. "
224-
"Currently valid addresses are: %s" % local_ips()
225+
"Currently valid addresses are: %s" % (self.ip, local_ips())
225226
)
226227

227228
# write connection file / get default ports

0 commit comments

Comments
 (0)