util/ProcessLogger.py
changeset 3500 a88ac1760faf
parent 3297 7e59bd180bc6
child 3722 ffce28009ad3
--- 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)