# HG changeset patch # User Pierre-Yves David # Date 1305533962 -7200 # Node ID 69aa88765db5cf88dab2bda896a88e5d1d9412fc # Parent 38524ca653e50264be1eb54b0d25bb5fe2bf80ef [http] Make a better __repr__ for Status responce exception. This help debug. diff -r 38524ca653e5 -r 69aa88765db5 web/_exceptions.py --- a/web/_exceptions.py Fri May 13 10:09:54 2011 +0200 +++ b/web/_exceptions.py Mon May 16 10:19:22 2011 +0200 @@ -53,6 +53,9 @@ self.status = int(status) self.content = content + def __repr__(self): + return '%s(%r, %r)' % (self.__class__.__name__, self.status, self.content) + class InvalidSession(CubicWebException): """raised when a session id is found but associated session is not found or invalid