Skip to content

Commit b20d68f

Browse files
committed
Revert import command error handling
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
1 parent c77680b commit b20d68f

1 file changed

Lines changed: 3 additions & 10 deletions

File tree

vulnerabilities/management/commands/import.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,6 @@ def _import_data(self, importers, cutoff_date):
102102
for importer in importers:
103103
self.stdout.write(f'Importing data from {importer.name}')
104104
batch_size = int(getattr(self, 'batch_size', 10))
105-
try:
106-
ImportRunner(importer, batch_size).run(cutoff_date=cutoff_date)
107-
self.stdout.write(
108-
self.style.SUCCESS(f'Successfully imported data from {importer.name}'))
109-
110-
except Exception as e:
111-
# TBD
112-
self.stdout.write(
113-
self.style.ERROR(f'Importing data from {importer.name} failed due to {e}'))
114-
continue
105+
ImportRunner(importer, batch_size).run(cutoff_date=cutoff_date)
106+
self.stdout.write(
107+
self.style.SUCCESS(f'Successfully imported data from {importer.name}'))

0 commit comments

Comments
 (0)