mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-02-26 17:53:12 -05:00
feat: Add recipe as ingredient (#4800)
Co-authored-by: Michael Genson <71845777+michael-genson@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
ff42964537
commit
60d9294861
@@ -22,6 +22,14 @@ class PermissionDenied(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class RecursiveRecipe(Exception):
|
||||
"""
|
||||
This exception is raised when a recipe references itself, either directly or indirectly.
|
||||
"""
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class SlugError(Exception):
|
||||
"""
|
||||
This exception is raised when the recipe name generates an invalid slug.
|
||||
@@ -47,6 +55,7 @@ def mealie_registered_exceptions(t: Translator) -> dict:
|
||||
PermissionDenied: t.t("exceptions.permission-denied"),
|
||||
NoEntryFound: t.t("exceptions.no-entry-found"),
|
||||
IntegrityError: t.t("exceptions.integrity-error"),
|
||||
RecursiveRecipe: t.t("exceptions.recursive-recipe-link"),
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user