Warn on invalid model configs in the DB rather than crashing.

This commit is contained in:
Ryan Dick
2024-07-10 09:41:46 -04:00
parent 5795617f86
commit 69af099532
5 changed files with 24 additions and 7 deletions

View File

@ -99,7 +99,7 @@ class ApiDependencies:
model_images_service = ModelImageFileStorageDisk(model_images_folder / "model_images")
model_manager = ModelManagerService.build_model_manager(
app_config=configuration,
model_record_service=ModelRecordServiceSQL(db=db),
model_record_service=ModelRecordServiceSQL(db=db, logger=logger),
download_queue=download_queue_service,
events=events,
)