[pypy-svn] r71216 - codespeed/tools

tobami at codespeak.net tobami at codespeak.net
Sat Feb 13 11:58:28 CET 2010


Author: tobami
Date: Sat Feb 13 11:58:27 2010
New Revision: 71216

Modified:
   codespeed/tools/saveresults.py
Log:
improve error handling

Modified: codespeed/tools/saveresults.py
==============================================================================
--- codespeed/tools/saveresults.py	(original)
+++ codespeed/tools/saveresults.py	Sat Feb 13 11:58:27 2010
@@ -49,7 +49,7 @@
             'result_value': value,
             'result_date': current_date,
         }
-        send(data)
+        return send(data)
     
 def send(data):
     #save results
@@ -71,5 +71,6 @@
             response = '\n  The server couldn\'t fulfill the request\n'
             response += '  Error code: ' + str(e)
         logger.critical("Server (%s) response: %s\n" % (SPEEDURL, response))
-
+        return 1
+    return 0
     



More information about the Pypy-commit mailing list