From e45a72710525787e47427dbb2e51b3b7e1aba463 Mon Sep 17 00:00:00 2001 From: Bea Steers Date: Tue, 8 Oct 2024 16:27:50 -0400 Subject: [PATCH] allow unknown recipes --- app/core/session.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/core/session.py b/app/core/session.py index 762f350..dbc8159 100644 --- a/app/core/session.py +++ b/app/core/session.py @@ -30,8 +30,8 @@ async def current_session_id(self): async def start_recipe(self, id: str): recipe = await recipes.recipe_db.get(id) - if not recipe: - raise ValueError(f"Recipe {id} not found.") + # if not recipe: + # raise ValueError(f"Recipe {id} not found.") session_id = str(int(time.time())) async with ctx.redis.pipeline() as pipe: pipe.set(RECIPE_ID, id)