Commit c9fc2a70 authored by Christophe de Vienne's avatar Christophe de Vienne
Browse files

Convert exception to unicode instead of str.

The result of the conversion is used as a message, hence needs to be
unicode string.
parent 9a977f6dcbdc
......@@ -68,7 +68,7 @@ class ForgottenPasswordSendMailController(controller.Controller):
except ValidationError:
raise
except Exception, exc:
msg = str(exc)
msg = unicode(exc)
else:
msg = self._cw._(u'An email has been sent, follow instructions in there to change your password.')
raise Redirect(self._cw.build_url('pwdsent', __message=msg))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment