mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-12-09 11:55:18 -05:00
fix: fast fail of bulk importer (#1394)
* use continue instead of break * catch additional error case * spelling is hard
This commit is contained in:
@@ -77,7 +77,7 @@ class RecipeBulkScraperService(BaseService):
|
||||
self.service.logger.error(f"failed to scrape url during bulk url import {b.url}")
|
||||
self.service.logger.exception(e)
|
||||
self._add_error_entry(f"failed to scrape url {b.url}", str(e))
|
||||
break
|
||||
continue
|
||||
|
||||
if b.tags:
|
||||
recipe.tags = b.tags
|
||||
@@ -90,7 +90,8 @@ class RecipeBulkScraperService(BaseService):
|
||||
except Exception as e:
|
||||
self.service.logger.error(f"Failed to save recipe to database during bulk url import {b.url}")
|
||||
self.service.logger.exception(e)
|
||||
self._add_error_entry("Failed to save recipe to database during bulk url import", str(e))
|
||||
self._add_error_entry(f"Failed to save recipe to database during bulk url import {b.url}", str(e))
|
||||
continue
|
||||
|
||||
self.report_entries.append(
|
||||
ReportEntryCreate(
|
||||
|
||||
Reference in New Issue
Block a user