diff --git a/IPython/frontend/_process/killableprocess.py b/IPython/frontend/_process/killableprocess.py index 955482c..f0f6d92 100644 --- a/IPython/frontend/_process/killableprocess.py +++ b/IPython/frontend/_process/killableprocess.py @@ -151,7 +151,10 @@ else: self._thread = ht self.pid = pid - winprocess.AssignProcessToJobObject(self._job, hp) + try: + winprocess.AssignProcessToJobObject(self._job, hp) + except WindowsError: + pass winprocess.ResumeThread(ht) if p2cread is not None: