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:
parent
17693754de
commit
a2464bd95e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue