Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions invenio_records_resources/services/files/transfer/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from abc import ABC

from flask_babel import lazy_gettext as _
from fs.errors import CreateFailed
from invenio_files_rest.errors import FileSizeError
from werkzeug.exceptions import ClientDisconnected

Expand Down Expand Up @@ -99,7 +98,7 @@ def set_file_content(self, stream, content_length):
self.record.files.create_obj(
self.file_record.key, stream, size=content_length, size_limit=size_limit
)
except (ClientDisconnected, CreateFailed):
except (ClientDisconnected, OSError):
raise TransferException(
f'Transfer of File with key "{self.file_record.key}" failed.'
)
Expand Down
Loading