From 21f49a2fb5fa515da48bfe967a3914e929db0e58 Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Wed, 18 Jan 2023 08:42:38 +0100 Subject: [PATCH] fixed return type --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index fbc69cc..d4bd819 100644 --- a/app/main.py +++ b/app/main.py @@ -161,7 +161,7 @@ async def _origins_delete(request: Request): async def _origins_delete_origin_ref(request: Request, origin_ref: str): if Origin.delete(db, origin_ref) == 1: return Response(status_code=201) - raise JSONr(status_code=404, content={'status': 404, 'detail': 'lease not found'}) + return JSONr(status_code=404, content={'status': 404, 'detail': 'lease not found'}) @app.get('/-/leases', summary='* Leases')