From 1b326bd554fc35c486edeca47c1e7509b83cb6b9 2015-05-24 23:38:08 From: Matthias Bussonnier Date: 2015-05-24 23:38:08 Subject: [PATCH] Merge pull request #8470 from takluyver/i8465 Fix quitting debugger when readline not in use --- diff --git a/IPython/core/debugger.py b/IPython/core/debugger.py index 5d34cf2..548f109 100644 --- a/IPython/core/debugger.py +++ b/IPython/core/debugger.py @@ -303,7 +303,8 @@ class Pdb(OldPdb): self.shell.Completer.all_completions=self.old_all_completions # Pdb sets readline delimiters, so set them back to our own - self.shell.readline.set_completer_delims(self.shell.readline_delims) + if self.shell.readline is not None: + self.shell.readline.set_completer_delims(self.shell.readline_delims) return OldPdb.do_quit(self, arg)