Author: Maciej Fijalkowski <[email protected]>
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)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit