Cleanup for Refactor-error-messages

This patch is a clean-up patch for refactor-error-messages bp
which remove the exception message from base message otherwise
the same exception message display twice like
this https://ibb.co/XyFWMdz .

Change-Id: Ie0538de1dd8df45009ca24bab379980d7d1b9613
This commit is contained in:
manchandavishal 2020-08-26 11:44:27 +00:00
parent 8a7401e0df
commit a96c06dbfd
1 changed files with 2 additions and 2 deletions

View File

@ -128,8 +128,8 @@ class UpdateProtectionPlanForm(horizon_forms.SelfHandlingForm):
messages.success(request,
_("Protection Plan updated successfully."))
return new_plan
except Exception as e:
msg = _('Unable to update protection plan. ') + e.message
except Exception:
msg = _('Unable to update protection plan.')
exceptions.handle(request, msg)