csv_import: make sure has_errors is toggled (#35773)

This commit is contained in:
Valentin Deniaud 2019-10-14 15:42:16 +02:00
parent 50657e71fe
commit 64157da70c
1 changed files with 1 additions and 1 deletions

View File

@ -296,7 +296,7 @@ class UserCsvImporter(object):
row.is_valid = False
except CancelImport:
self.rows_with_errors += 1
if row.errors:
if row.errors or not row.is_valid:
self.has_errors = True
if simulate:
raise Simulate