ve is scoped to the except block.

We probably want to see a whole bunch of errors collected in errors
anyways.  That should get converted to a string uppon being raised, so
pass errors directly.
This commit is contained in:
Sachi King 2017-04-22 18:40:40 +10:00
parent 17693754de
commit a2464bd95e

View file

@ -318,7 +318,7 @@ class CartController(object):
errors.append(ve)
if errors:
raise(ValidationError(ve))
raise(ValidationError(errors))
def _test_required_categories(self):
''' Makes sure that the owner of this cart has satisfied all of the