Forward the lab 4 foundation and migrate the lab 5 pipeline to SQLAlchemy
This commit is contained in:
@@ -49,6 +49,9 @@ class OpenAttachment:
|
||||
if found is None:
|
||||
raise AttachmentNotFound("у вложения нет такого варианта")
|
||||
key, content_type = found.object_key, found.content_type
|
||||
if attachment.quarantine is not None:
|
||||
self._logger.warning("attachment.quarantined", attachment_id=str(attachment.id))
|
||||
raise AttachmentNotFound("вложение не найдено")
|
||||
try:
|
||||
content = await self._storage.open(str(key))
|
||||
except ObjectMissingError as error:
|
||||
|
||||
Reference in New Issue
Block a user