##// 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 144 # The class to use as the crash handler.
145 145 crash_handler_class = Type(crashhandler.CrashHandler)
146 146
147 @catch_config_error
147 148 def __init__(self, **kwargs):
148 149 super(BaseIPythonApplication, self).__init__(**kwargs)
149 150 # ensure current working directory exists
@@ -11,15 +11,6 b''
11 11 #-----------------------------------------------------------------------------
12 12 # Imports
13 13 #-----------------------------------------------------------------------------
14 import sys
15 import traceback
16
17 14 from IPython.parallel.apps.ipclusterapp import launch_new_instance
18 15
19 try:
20 16 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 12 # Imports
13 13 #-----------------------------------------------------------------------------
14 import sys
15 import traceback
16
17 14 from IPython.parallel.apps.ipcontrollerapp import launch_new_instance
18 15
19 try:
20 16 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 12 # Imports
13 13 #-----------------------------------------------------------------------------
14 import sys
15 import traceback
16
17 14 from IPython.parallel.apps.ipengineapp import launch_new_instance
18 15
19 try:
20 16 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 12 # Imports
13 13 #-----------------------------------------------------------------------------
14 import sys
15 import traceback
16
17 14 from IPython.parallel.apps.iploggerapp import launch_new_instance
18 15
19 try:
20 16 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 1 #!/usr/bin/env python
2 2 """Terminal-based IPython entry point.
3 3 """
4 import sys
5 import traceback
6 4
7 5 from IPython.frontend.terminal.ipapp import launch_new_instance
8 6
9 try:
10 7 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