# HG changeset patch # User Sylvain Thenault # Date 1228496709 -3600 # Node ID a2966960d5508391960aed7ad9f3706362c9a633 # Parent 0e031b66cb0b556197d897c0957575a3ff3da0a0 get actual exception class instead of 'unicode' in the error view diff -r 0e031b66cb0b -r a2966960d550 web/views/management.py --- a/web/views/management.py Fri Dec 05 17:26:39 2008 +0100 +++ b/web/views/management.py Fri Dec 05 18:05:09 2008 +0100 @@ -199,11 +199,17 @@ self.w(u'

%s

' % title) if 'errmsg' in req.data: ex = req.data['errmsg'] + exclass = None else: + exclass = ex.__class__.__name__ ex = exc_message(ex, req.encoding) if excinfo is not None and self.config['print-traceback']: - exclass = ex.__class__.__name__ - self.w(u'
%s: %s
' % (exclass, html_escape(ex).replace("\n","
"))) + if exclass is None: + self.w(u'
%s
' + % html_escape(ex).replace("\n","
")) + else: + self.w(u'
%s: %s
' + % (exclass, html_escape(ex).replace("\n","
"))) self.w(u'
') self.w(u'
%s
' % html_traceback(excinfo, ex, '')) else: