Removes duplicate error messages from being displayed during batch action error.

Fixes bug 953583.

Change-Id: Ie7a5e0bef12372debb3fa1b3837488b5609b58c8
This commit is contained in:
Gabriel Hurley 2012-03-12 18:46:59 -07:00
parent e206ba6a4c
commit d0f78679a0

View File

@ -494,9 +494,10 @@ class BatchAction(Action):
LOG.info('%s: "%s"' %
(self._conjugate(past=True), datum_display))
except:
action_str = self._conjugate().lower()
exceptions.handle(request,
_("Unable to %s.") % action_str)
# Handle the exception but silence it since we'll display
# an aggregate error message later. Otherwise we'd get
# multiple error messages displayed to the user.
exceptions.handle(request, ignore=True)
action_failure.append(datum_display)
#Begin with success message class, downgrade to info if problems