Skip to content

Commit

Permalink
Merge c950117 into 94aab4f
Browse files Browse the repository at this point in the history
  • Loading branch information
SimoRubi committed Apr 9, 2019
2 parents 94aab4f + c950117 commit fe5624b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quality_control/models/qc_test_category.py
Expand Up @@ -33,7 +33,7 @@ def _check_recursion(self):
('parent_id', '!=', False)])
ids = list(set([x.parent_id.id for x in parents]))
if not level:
raise exceptions.UserError(
raise exceptions.ValidationError(
_('Error! You can not create recursive categories.'))
level -= 1

Expand Down

0 comments on commit fe5624b

Please sign in to comment.