IDE: fix exception happening in debug mode when logging process termination.
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Thu, 26 May 2022 23:41:10 +0200
changeset 3483 e25f1cf69df9
parent 3482 31f6d7221f60
child 3491 88c4b18453d5
IDE: fix exception happening in debug mode when logging process termination.
util/ProcessLogger.py
--- a/util/ProcessLogger.py	Thu May 26 23:39:30 2022 +0200
+++ b/util/ProcessLogger.py	Thu May 26 23:41:10 2022 +0200
@@ -139,7 +139,7 @@
         else:
             self.timeout = None
 
-        if _debug:
+        if _debug and self.logger:
             self.logger.write("(DEBUG) launching:\n" + self.Command_str + "\n")
 
         self.Proc = subprocess.Popen(self.Command, **popenargs)