Skip to content
Browse files

exit if server cannot start (instead of ugly traceback)

  • Loading branch information...
1 parent ba9a02a commit 6bd4e436b04d7e1f9cfc109e3eb6c07d04ad8ce4 @bfroehle committed May 31, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 IPython/frontend/html/notebook/notebookapp.py
View
2 IPython/frontend/html/notebook/notebookapp.py
@@ -453,7 +453,7 @@ def init_webapp(self):
if not success:
self.log.critical('ERROR: the notebook server could not be started because '
'no available port could be found.')
- raise RuntimeError
+ self.exit(1)
def init_signal(self):
# FIXME: remove this check when pyzmq dependency is >= 2.1.11

0 comments on commit 6bd4e43

Please sign in to comment.
Something went wrong with that request. Please try again.