##// END OF EJS Templates
crashhandler: Cast rptdir to Path
user202729 -
Show More
@@ -157,10 +157,10 class CrashHandler(object):
157 # Use this ONLY for developer debugging (keep commented out for release)
157 # Use this ONLY for developer debugging (keep commented out for release)
158 #color_scheme = 'Linux' # dbg
158 #color_scheme = 'Linux' # dbg
159 try:
159 try:
160 rptdir = self.app.ipython_dir
160 rptdir = Path(self.app.ipython_dir)
161 except:
161 except:
162 rptdir = Path.cwd()
162 rptdir = Path.cwd()
163 if rptdir is None or not Path.is_dir(rptdir):
163 if not rptdir.is_dir():
164 rptdir = Path.cwd()
164 rptdir = Path.cwd()
165 report_name = rptdir / self.crash_report_fname
165 report_name = rptdir / self.crash_report_fname
166 # write the report filename into the instance dict so it can get
166 # write the report filename into the instance dict so it can get
General Comments 0
You need to be logged in to leave comments. Login now