[Python-modules-commits] r19677 - in packages/ipython/trunk/debian/patches (1 file)

jtaylor-guest at users.alioth.debian.org jtaylor-guest at users.alioth.debian.org
Mon Dec 19 20:14:06 UTC 2011


    Date: Monday, December 19, 2011 @ 20:14:05
  Author: jtaylor-guest
Revision: 19677

print error message when -notebook is used but not installed

Modified:
  packages/ipython/trunk/debian/patches/debianize-error-messages.patch

Modified: packages/ipython/trunk/debian/patches/debianize-error-messages.patch
===================================================================
--- packages/ipython/trunk/debian/patches/debianize-error-messages.patch	2011-12-19 20:14:00 UTC (rev 19676)
+++ packages/ipython/trunk/debian/patches/debianize-error-messages.patch	2011-12-19 20:14:05 UTC (rev 19677)
@@ -9,7 +9,7 @@
 
 --- a/IPython/scripts/ipython
 +++ b/IPython/scripts/ipython
-@@ -4,4 +4,11 @@
+@@ -4,4 +4,13 @@
  
  from IPython.frontend.terminal.ipapp import launch_new_instance
  
@@ -19,6 +19,8 @@
 +except ImportError as e:
 +  if "qt.console.qtconsoleapp" in e.message:
 +    print "Could not start qtconsole. Please install ipython-qtconsole"
++  elif "html.notebook.notebookapp" in e.message:
++    print "Could not start notebook. Please install ipython-notebook"
 +  else:
 +    # if there is no clue on the cause -- just re-raise
 +    raise




More information about the Python-modules-commits mailing list