Fix: returning response from finally block

This commit is contained in:
arabcoders 2025-12-27 21:52:41 +03:00
parent b6b16666f6
commit 4ad218e97d

View file

@ -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