starting new branch for issue #8; [FIX] removing handling of non-handled exception from switchTo()

This commit is contained in:
Benedek Racz 2019-10-07 16:43:10 +02:00
parent 2c978c6564
commit 8f1aeb7da8

View File

@ -2064,22 +2064,13 @@ class Wtty:
win32console.AttachConsole(self.conpid) win32console.AttachConsole(self.conpid)
self.__consin = win32console.GetStdHandle(win32console.STD_INPUT_HANDLE) self.__consin = win32console.GetStdHandle(win32console.STD_INPUT_HANDLE)
self.__consout = self.getConsoleOut() self.__consout = self.getConsoleOut()
except Exception as e: except:
#e = traceback.format_exc() # In case of any error: We "switch back" (attach) our original console, then raise the
try: # error.
win32console.AttachConsole(self.__parentPid) win32console.AttachConsole(self.__parentPid)
except Exception as ex: raise
pass
#log(e)
#log(ex)
return
#self.__consin = None
#self.__consout = None
#raise e
def switchBack(self): def switchBack(self):
"""Releases from the current console and attaches """Releases from the current console and attaches
to the parents.""" to the parents."""