[py-svn] r63061 - py/trunk/py/execnet/script

hpk at codespeak.net hpk at codespeak.net
Thu Mar 19 10:57:20 CET 2009


Author: hpk
Date: Thu Mar 19 10:57:19 2009
New Revision: 63061

Modified:
   py/trunk/py/execnet/script/socketserver.py
Log:
dont print too much info on non-debug


Modified: py/trunk/py/execnet/script/socketserver.py
==============================================================================
--- py/trunk/py/execnet/script/socketserver.py	(original)
+++ py/trunk/py/execnet/script/socketserver.py	Thu Mar 19 10:57:19 2009
@@ -68,8 +68,12 @@
             except (KeyboardInterrupt, SystemExit): 
                 raise 
             except: 
-                import traceback
-                traceback.print_exc()
+                if debug:
+                    import traceback
+                    traceback.print_exc()
+                else:
+                    excinfo = sys.exc_info()
+                    print "got exception", excinfo[1]
             if not loop: 
                 break 
     finally:



More information about the pytest-commit mailing list