diff --git a/blazar_dashboard/content/hosts/forms.py b/blazar_dashboard/content/hosts/forms.py index 956dbea..3082479 100644 --- a/blazar_dashboard/content/hosts/forms.py +++ b/blazar_dashboard/content/hosts/forms.py @@ -47,7 +47,7 @@ class UpdateForm(forms.SelfHandlingForm): LOG.error('Error updating host: %s', e) exceptions.handle(request, message="An error occurred while updating this" - " host: %s. Please try again." % e) + " host. Please try again.") def clean(self): cleaned_data = super(UpdateForm, self).clean() diff --git a/blazar_dashboard/content/leases/forms.py b/blazar_dashboard/content/leases/forms.py index e0f11e5..1cd4f6e 100644 --- a/blazar_dashboard/content/leases/forms.py +++ b/blazar_dashboard/content/leases/forms.py @@ -208,7 +208,7 @@ class CreateForm(forms.SelfHandlingForm): LOG.error('Error submitting lease: %s', e) exceptions.handle(request, message='An error occurred while creating this ' - 'lease: %s. Please try again.' % e) + 'lease. Please try again.') def clean(self): cleaned_data = super(CreateForm, self).clean() @@ -313,7 +313,7 @@ class UpdateForm(forms.SelfHandlingForm): LOG.error('Error updating lease: %s', e) exceptions.handle(request, message="An error occurred while updating this" - " lease: %s. Please try again." % e) + " lease. Please try again.") def clean(self): cleaned_data = super(UpdateForm, self).clean()