Skip to content
Snippets Groups Projects
Commit a74d94b6 authored by Zuul's avatar Zuul Committed by Gerrit Code Review
Browse files

Merge "Remove the function of messages.error in AddRouterRoute"

parents 1070425a 4af12ac8
No related branches found
No related tags found
No related merge requests found
......@@ -48,12 +48,10 @@ class AddRouterRoute(forms.SelfHandlingForm):
LOG.info('Invalid format for routes %(route)s: %(exc)s',
{'route': route, 'exc': e})
msg = _('Invalid format for routes: %s') % e
messages.error(request, msg)
redirect = reverse(self.failure_url, args=[router_id])
exceptions.handle(request, msg, redirect=redirect)
except Exception as e:
LOG.info('Failed to add route: %s', e)
msg = _('Failed to add route: %s') % e
messages.error(request, msg)
redirect = reverse(self.failure_url, args=[router_id])
exceptions.handle(request, msg, redirect=redirect)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment