##// END OF EJS Templates
Use @catch_config_error to catch exception from getcwdu in nonexisting directory
Thomas Spura -
Show More
@@ -144,6 +144,7 b' class BaseIPythonApplication(Application):'
144 # The class to use as the crash handler.
144 # The class to use as the crash handler.
145 crash_handler_class = Type(crashhandler.CrashHandler)
145 crash_handler_class = Type(crashhandler.CrashHandler)
146
146
147 @catch_config_error
147 def __init__(self, **kwargs):
148 def __init__(self, **kwargs):
148 super(BaseIPythonApplication, self).__init__(**kwargs)
149 super(BaseIPythonApplication, self).__init__(**kwargs)
149 # ensure current working directory exists
150 # ensure current working directory exists
@@ -11,15 +11,6 b''
11 #-----------------------------------------------------------------------------
11 #-----------------------------------------------------------------------------
12 # Imports
12 # Imports
13 #-----------------------------------------------------------------------------
13 #-----------------------------------------------------------------------------
14 import sys
15 import traceback
16
17 from IPython.parallel.apps.ipclusterapp import launch_new_instance
14 from IPython.parallel.apps.ipclusterapp import launch_new_instance
18
15
19 try:
16 launch_new_instance()
20 launch_new_instance()
21 except:
22 exc_type, exc_value, exc_traceback = sys.exc_info()
23 traceback.print_exception(exc_type, exc_value, exc_traceback,
24 file=sys.stderr)
25 sys.exit(1)
@@ -11,15 +11,6 b''
11 #-----------------------------------------------------------------------------
11 #-----------------------------------------------------------------------------
12 # Imports
12 # Imports
13 #-----------------------------------------------------------------------------
13 #-----------------------------------------------------------------------------
14 import sys
15 import traceback
16
17 from IPython.parallel.apps.ipcontrollerapp import launch_new_instance
14 from IPython.parallel.apps.ipcontrollerapp import launch_new_instance
18
15
19 try:
16 launch_new_instance()
20 launch_new_instance()
21 except:
22 exc_type, exc_value, exc_traceback = sys.exc_info()
23 traceback.print_exception(exc_type, exc_value, exc_traceback,
24 file=sys.stderr)
25 sys.exit(1)
@@ -11,15 +11,6 b''
11 #-----------------------------------------------------------------------------
11 #-----------------------------------------------------------------------------
12 # Imports
12 # Imports
13 #-----------------------------------------------------------------------------
13 #-----------------------------------------------------------------------------
14 import sys
15 import traceback
16
17 from IPython.parallel.apps.ipengineapp import launch_new_instance
14 from IPython.parallel.apps.ipengineapp import launch_new_instance
18
15
19 try:
16 launch_new_instance()
20 launch_new_instance()
21 except:
22 exc_type, exc_value, exc_traceback = sys.exc_info()
23 traceback.print_exception(exc_type, exc_value, exc_traceback,
24 file=sys.stderr)
25 sys.exit(1)
@@ -11,15 +11,6 b''
11 #-----------------------------------------------------------------------------
11 #-----------------------------------------------------------------------------
12 # Imports
12 # Imports
13 #-----------------------------------------------------------------------------
13 #-----------------------------------------------------------------------------
14 import sys
15 import traceback
16
17 from IPython.parallel.apps.iploggerapp import launch_new_instance
14 from IPython.parallel.apps.iploggerapp import launch_new_instance
18
15
19 try:
16 launch_new_instance()
20 launch_new_instance()
21 except:
22 exc_type, exc_value, exc_traceback = sys.exc_info()
23 traceback.print_exception(exc_type, exc_value, exc_traceback,
24 file=sys.stderr)
25 sys.exit(1)
@@ -1,15 +1,7 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python
2 """Terminal-based IPython entry point.
2 """Terminal-based IPython entry point.
3 """
3 """
4 import sys
5 import traceback
6
4
7 from IPython.frontend.terminal.ipapp import launch_new_instance
5 from IPython.frontend.terminal.ipapp import launch_new_instance
8
6
9 try:
7 launch_new_instance()
10 launch_new_instance()
11 except:
12 exc_type, exc_value, exc_traceback = sys.exc_info()
13 traceback.print_exception(exc_type, exc_value, exc_traceback,
14 file=sys.stderr)
15 sys.exit(1)
General Comments 0
You need to be logged in to leave comments. Login now