devtools/stresstester.py
branchstable
changeset 7815 2a164a9cf81c
parent 5424 8ecbcbff9777
child 8695 358d8bed9626
--- a/devtools/stresstester.py	Tue Sep 20 15:14:04 2011 +0200
+++ b/devtools/stresstester.py	Wed Sep 21 17:38:00 2011 +0200
@@ -1,4 +1,4 @@
-# copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
+# copyright 2003-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
 #
 # This file is part of CubicWeb.
@@ -38,7 +38,7 @@
   -o / --report-output <filename>
      Write profiler report into <filename> rather than on stdout
 
-Copyright (c) 2003-2010 LOGILAB S.A. (Paris, FRANCE), license is LGPL v2.
+Copyright (c) 2003-2011 LOGILAB S.A. (Paris, FRANCE), license is LGPL v2.
 http://www.logilab.fr/ -- mailto:contact@logilab.fr
 """
 
@@ -73,9 +73,7 @@
                 start = clock()
                 try:
                     cursor.execute(query)
-                except KeyboardInterrupt:
-                    raise
-                except:
+                except Exception:
                     TB_LOCK.acquire()
                     traceback.print_exc()
                     TB_LOCK.release()