Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
nomad-FAIR
Commits
73c75007
Commit
73c75007
authored
Dec 03, 2020
by
Markus Scheidgen
Browse files
Log error on exception while streaming download.
parent
2dd141a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
nomad/app_fastapi/routers/entries.py
View file @
73c75007
...
...
@@ -316,6 +316,8 @@ def _answer_entries_raw_download_request(owner: Owner, query: Query, files: File
# create the streaming response with zip file contents
content
=
create_streamed_zipfile
(
raw_file_generator
(),
compress
=
files_params
.
compress
)
return
StreamingResponse
(
content
,
media_type
=
'application/zip'
)
except
Exception
as
e
:
logger
.
error
(
'exception while streaming download'
,
exc_info
=
e
)
finally
:
uploads
.
close
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment