Sun, 25 Apr 2021 15:21:50 +0200
DebugClientBase: implemented some small code change to (hopefully) prevent a tracebach cause by DebugClientInstance being None.
eric6/DebugClients/Python/DebugClientBase.py | file | annotate | diff | comparison | revisions |
--- a/eric6/DebugClients/Python/DebugClientBase.py Sat Apr 24 16:35:05 2021 +0200 +++ b/eric6/DebugClients/Python/DebugClientBase.py Sun Apr 25 15:21:50 2021 +0200 @@ -54,8 +54,8 @@ """ if DebugClientInstance is None or not DebugClientInstance.redirect: return DebugClientOrigInput(prompt) - - return DebugClientInstance.input(prompt) + else: + return DebugClientInstance.input(prompt) # Use our own input(). try: @@ -77,8 +77,8 @@ """ if DebugClientInstance is None: DebugClientOrigClose(fd) - - DebugClientInstance.close(fd) + else: + DebugClientInstance.close(fd) # use our own close(). if 'close' in dir(os):