[Erp5-report] r46014 arnaud.fontaine - /erp5/trunk/utils/erp5.utils.benchmark/src/erp5/util...
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Aug 30 10:11:29 CEST 2011
Author: arnaud.fontaine
Date: Tue Aug 30 10:11:29 2011
New Revision: 46014
URL: http://svn.erp5.org?rev=46014&view=rev
Log:
Provide a more informative error message when trying to stop gracefully
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=46014&r1=46013&r2=46014&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] Tue Aug 30 10:11:29 2011
@@ -52,7 +52,7 @@ class BenchmarkProcess(multiprocessing.P
super(BenchmarkProcess, self).__init__(*args, **kwargs)
def stopGracefully(self, *args, **kwargs):
- raise StopIteration, "Interrupted by user"
+ raise StopIteration("Interrupted by user, flushing remaining results...")
def getBrowser(self, log_file):
info_list = tuple(self._argument_namespace.url) + \
More information about the Erp5-report
mailing list