From 4ad218e97dd67b79f44201b6782cf27bb4488d54 Mon Sep 17 00:00:00 2001 From: arabcoders Date: Sat, 27 Dec 2025 21:52:41 +0300 Subject: [PATCH] Fix: returning response from finally block --- app/routes/api/browser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/routes/api/browser.py b/app/routes/api/browser.py index 80cf1257..cafaa9b9 100644 --- a/app/routes/api/browser.py +++ b/app/routes/api/browser.py @@ -596,5 +596,5 @@ async def stream_zip_download(request: Request, config: Config, cache: Cache) -> LOG.info("Download cancelled by client.") except Exception as e: LOG.error(f"Streaming zip download error. {type(e).__name__}: {e}") - finally: - return response # noqa: B012 + + return response