Show More
@@ -291,8 +291,7 b' class AdminUsersView(BaseAppView, DataGr' | |||||
291 | h.flash(_("Added new email address `%s` for user account") % email, |
|
291 | h.flash(_("Added new email address `%s` for user account") % email, | |
292 | category='success') |
|
292 | category='success') | |
293 | except formencode.Invalid as error: |
|
293 | except formencode.Invalid as error: | |
294 |
|
|
294 | h.flash(h.escape(error.error_dict['email']), category='error') | |
295 | h.flash(msg, category='error') |
|
|||
296 | except Exception: |
|
295 | except Exception: | |
297 | log.exception("Exception during email saving") |
|
296 | log.exception("Exception during email saving") | |
298 | h.flash(_('An error occurred during email saving'), |
|
297 | h.flash(_('An error occurred during email saving'), |
@@ -253,8 +253,7 b' class MyAccountView(BaseAppView):' | |||||
253 | h.flash(_("Added new email address `%s` for user account") % email, |
|
253 | h.flash(_("Added new email address `%s` for user account") % email, | |
254 | category='success') |
|
254 | category='success') | |
255 | except formencode.Invalid as error: |
|
255 | except formencode.Invalid as error: | |
256 |
|
|
256 | h.flash(h.escape(error.error_dict['email']), category='error') | |
257 | h.flash(msg, category='error') |
|
|||
258 | except Exception: |
|
257 | except Exception: | |
259 | log.exception("Exception in my_account_emails") |
|
258 | log.exception("Exception in my_account_emails") | |
260 | h.flash(_('An error occurred during email saving'), |
|
259 | h.flash(_('An error occurred during email saving'), |
General Comments 0
You need to be logged in to leave comments.
Login now