Fix: returning response from finally block
This commit is contained in:
parent
b6b16666f6
commit
4ad218e97d
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue