Mercurial > moin > 1.9
changeset 4686:0afc3b994fb0
fix macro argument parsing error handling for unicode exception messages
author | Thomas Waldmann <tw AT waldmann-edv DOT de> |
---|---|
date | Sun, 19 Apr 2009 00:18:34 +0200 |
parents | 3c8f4d34a6cd |
children | 2064407bfefd |
files | MoinMoin/macro/__init__.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/MoinMoin/macro/__init__.py Tue Apr 14 00:51:44 2009 +0200 +++ b/MoinMoin/macro/__init__.py Sun Apr 19 00:18:34 2009 +0200 @@ -130,7 +130,7 @@ _ = self.request.getText return self.formatter.text(_('<<%(macro_name)s: execution failed [%(error_msg)s] (see also the log)>>') % { 'macro_name': self.name, - 'error_msg': str(err), + 'error_msg': err.args[0], # note: str(err) or unicode(err) does not work for py2.4/5/6 }) def _m_lang(self, text):