[Erp5-report] r46024 arnaud.fontaine - /erp5/trunk/utils/erp5.utils.benchmark/src/erp5/util...

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Aug 31 13:45:04 CEST 2011


Author: arnaud.fontaine
Date: Wed Aug 31 13:45:03 2011
New Revision: 46024

URL: http://svn.erp5.org?rev=46024&view=rev
Log:
Convert the msg to a string before putting in the queue (otherwise the
exception object is serialized in order to be sent to the master process)

Modified:
    erp5/trunk/utils/erp5.utils.benchmark/src/erp5/utils/benchmark/process.py

Modified: erp5/trunk/utils/erp5.utils.benchmark/src/erp5/utils/benchmark/process.py
URL: http://svn.erp5.org/erp5/trunk/utils/erp5.utils.benchmark/src/erp5/utils/benchmark/process.py?rev=46024&r1=46023&r2=46024&view=diff
==============================================================================
--- erp5/trunk/utils/erp5.utils.benchmark/src/erp5/utils/benchmark/process.py [utf8] (original)
+++ erp5/trunk/utils/erp5.utils.benchmark/src/erp5/utils/benchmark/process.py [utf8] Wed Aug 31 13:45:03 2011
@@ -145,7 +145,7 @@ class BenchmarkProcess(multiprocessing.P
       self._logger.error(e)
 
     except BaseException, e:
-      exit_msg = e
+      exit_msg = str(e)
       exit_status = 1
 
     self._exit_msg_queue.put(exit_msg)



More information about the Erp5-report mailing list