[pypy-commit] benchmarks default: hopefully this is the last special case for errors

fijal noreply at buildbot.pypy.org
Mon Feb 6 09:04:38 CET 2012


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: 
Changeset: r174:7a39bbeb0f05
Date: 2012-02-06 10:04 +0200
http://bitbucket.org/pypy/benchmarks/changeset/7a39bbeb0f05/

Log:	hopefully this is the last special case for errors

diff --git a/saveresults.py b/saveresults.py
--- a/saveresults.py
+++ b/saveresults.py
@@ -121,7 +121,8 @@
             response += '  Reason: ' + str(e.reason)
         elif hasattr(e, 'code'):
             response = '\n  The server couldn\'t fulfill the request'
-        response = "".join([response] + e.readlines())
+        if hasattr(e, 'readlines'):
+            response = "".join([response] + e.readlines())
         print response
         with open('error.html', 'w') as error_file:
             error_file.write(response)


More information about the pypy-commit mailing list