[pypy-svn] r75046 - pypy/benchmarks

arigo at codespeak.net arigo at codespeak.net
Thu Jun 3 14:59:23 CEST 2010


Author: arigo
Date: Thu Jun  3 14:59:22 2010
New Revision: 75046

Modified:
   pypy/benchmarks/saveresults.py
Log:
Always just print the exception that we got,
instead of being clever and sometimes masking
the real reason with other messages.


Modified: pypy/benchmarks/saveresults.py
==============================================================================
--- pypy/benchmarks/saveresults.py	(original)
+++ pypy/benchmarks/saveresults.py	Thu Jun  3 14:59:22 2010
@@ -64,9 +64,9 @@
             response = '\n  We failed to reach a server\n'
             response += '  Reason: ' + str(e.reason)
         elif hasattr(e, 'code'):
-            response = '\n  The server couldn\'t fulfill the request\n'
-            response += '  Error code: ' + str(e)
+            response = '\n  The server couldn\'t fulfill the request'
         print("Server (%s) response: %s\n" % (SPEEDURL, response))
+        print('  Error code: ' + str(e))
         return 1
     print "saved correctly!\n"
     return 0



More information about the Pypy-commit mailing list