feat(recipes): add local-only recipe rematch to scanner

This commit is contained in:
Will Miao
2026-08-09 11:30:43 +08:00
parent 27027c4497
commit 64da845a58
3 changed files with 2002 additions and 1 deletions

View File

@@ -20,3 +20,12 @@ class RecipeDownloadError(RecipeServiceError):
class RecipeConflictError(RecipeServiceError):
"""Raised when a conflicting recipe state is detected."""
class RecipePersistenceError(RecipeServiceError):
"""Raised when a rematched recipe cannot be persisted to disk.
Raised by the recipe rematch path when ``_save_recipe_persistently``
returns False (JSON/EXIF/SQLite write failure). Callers translate it
into a ``success: False`` summary with an ``error`` message key.
"""