Skip to content

Commit 546d856

Browse files
committed
crashhandler: Cast rptdir to Path
1 parent 0615526 commit 546d856

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

IPython/core/crashhandler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,10 @@ def __call__(self, etype, evalue, etb):
157157
# Use this ONLY for developer debugging (keep commented out for release)
158158
#color_scheme = 'Linux' # dbg
159159
try:
160-
rptdir = self.app.ipython_dir
160+
rptdir = Path(self.app.ipython_dir)
161161
except:
162162
rptdir = Path.cwd()
163-
if rptdir is None or not Path.is_dir(rptdir):
163+
if not rptdir.is_dir():
164164
rptdir = Path.cwd()
165165
report_name = rptdir / self.crash_report_fname
166166
# write the report filename into the instance dict so it can get

0 commit comments

Comments
 (0)