fixes sometimes happened error during project compilation
authorAndrey Skvortsov <andrej.skvortzov@gmail.com
Mon, 18 Apr 2016 18:48:15 +0300
changeset 1476 49f1763a5613
parent 1475 de4ee16f7c6c
child 1477 270dba8bf87b
fixes sometimes happened error during project compilation

Traceback (most recent call last):
File "./Beremiz.py", line 1229, in run_with_except_hook
run_old(*args, **kw)
File
"/home/developer/WorkData/PLC/beremiz/beremiz/util/ProcessLogger.py",
line 68, in run
self.endcallback(self.Proc.pid, err)
File
"/home/developer/WorkData/PLC/beremiz/beremiz/util/ProcessLogger.py",
line 169, in finish
if self.timeout: self.timeout.cancel()
AttributeError: ProcessLogger instance has no attribute 'timeout'
util/ProcessLogger.py
--- a/util/ProcessLogger.py	Wed Oct 21 15:00:32 2015 +0100
+++ b/util/ProcessLogger.py	Mon Apr 18 18:48:15 2016 +0300
@@ -166,7 +166,8 @@
         self.logger.write_warning(_("exited with status %s (pid %s)\n")%(str(ecode),str(pid)))
 
     def finish(self, pid,ecode):
-        if self.timeout: self.timeout.cancel()
+        if self.timeout:
+            self.timeout.cancel()
         self.exitcode = ecode
         if self.exitcode != 0:
             self.log_the_end(ecode,pid)