# HG changeset patch # User Oleg Oshmyan # Date 1306259940 -3600 # Node ID 523ba6907f3aea03301b0919b29c830ab0e5c910 # Parent e84f33a60a5cd38ccf9bd30c480adf3c6606c884 Corrected a typo (hopefully) in problem.strerror diff -r e84f33a60a5c -r 523ba6907f3a problem.py --- a/problem.py Fri May 20 14:47:42 2011 +0100 +++ b/problem.py Tue May 24 18:59:00 2011 +0100 @@ -32,7 +32,7 @@ __all__ = 'Problem', 'TestContext', 'test_context_end', 'TestGroup' def strerror(e): - s = getattr(e, 'strerror', e) + s = getattr(e, 'strerror', None) if not s: s = str(e) return ' (%s%s)' % (s[0].lower(), s[1:]) if s else ''