mirror of
https://github.com/jupyter/notebook.git
synced 2025-03-01 12:56:54 +08:00
Merge pull request #1079 from minrk/not-so-random
remove the 'random' from the random-port message
This commit is contained in:
commit
fd86d6c24d
@ -915,7 +915,7 @@ class NotebookApp(JupyterApp):
|
||||
self.http_server.listen(port, self.ip)
|
||||
except socket.error as e:
|
||||
if e.errno == errno.EADDRINUSE:
|
||||
self.log.info('The port %i is already in use, trying another random port.' % port)
|
||||
self.log.info('The port %i is already in use, trying another port.' % port)
|
||||
continue
|
||||
elif e.errno in (errno.EACCES, getattr(errno, 'WSAEACCES', errno.EACCES)):
|
||||
self.log.warning("Permission to listen on port %i denied" % port)
|
||||
|
Loading…
Reference in New Issue
Block a user