From 17f17d129d166b5aaf27384ec3b289873dd6c4ba 2024-11-13 13:03:16 From: M Bussonnier Date: 2024-11-13 13:03:16 Subject: [PATCH] Update IPython/core/crashhandler.py --- diff --git a/IPython/core/crashhandler.py b/IPython/core/crashhandler.py index cae93c5..9c75c5d 100644 --- a/IPython/core/crashhandler.py +++ b/IPython/core/crashhandler.py @@ -164,7 +164,7 @@ class CrashHandler: # Use this ONLY for developer debugging (keep commented out for release) # color_scheme = 'Linux' # dbg - ipython_dir = getattr(self.app, "ipython_dir") + ipython_dir = getattr(self.app, "ipython_dir", None) if ipython_dir is not None: assert isinstance(ipython_dir, str) rptdir = Path(ipython_dir)