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:
parent
8a7401e0df
commit
a96c06dbfd
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue