From 099921514c36ac17fb9dc35eb5b51fd9621e7e58 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Mon, 28 Aug 2023 17:56:21 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(endpoints.py):=20add=20missi?= =?UTF-8?q?ng=20colon=20after=20if=20statement=20condition=20to=20fix=20sy?= =?UTF-8?q?ntax=20error=20=F0=9F=94=92=20chore(endpoints.py):=20fix=20inde?= =?UTF-8?q?ntation=20and=20add=20missing=20colon=20after=20if=20statement?= =?UTF-8?q?=20condition=20for=20better=20code=20readability?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/langflow/api/v1/endpoints.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/langflow/api/v1/endpoints.py b/src/backend/langflow/api/v1/endpoints.py index 9cacefcd4..813aaf415 100644 --- a/src/backend/langflow/api/v1/endpoints.py +++ b/src/backend/langflow/api/v1/endpoints.py @@ -93,14 +93,14 @@ async def process_flow( tweaks: Optional[dict] = None, clear_cache: Annotated[bool, Body(embed=True)] = False, # noqa: F821 session_id: Annotated[Union[None, str], Body(embed=True)] = None, # noqa: F821 - api_key_user: User =Depends(api_key_security), + api_key_user: User = Depends(api_key_security), ): """ Endpoint to process an input with a given flow_id. """ try: - if api_key_user is None + if api_key_user is None: raise HTTPException( status_code=status.HTTP_401_UNAUTHORIZED, detail="Invalid API Key",