beremiz

Parents 72ee59ff959c
Children e87a2daace80
IDE: fix exception happening in debug mode when logging process termination.
--- 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)