Skip to content

Commit

Permalink
Merge pull request #756
Browse files Browse the repository at this point in the history
v5.2.1
  • Loading branch information
MatteoCampinoti94 authored Jan 17, 2025
2 parents 8f71a00 + 7f4e954 commit 6203390
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## v5.2.1

### Fixes

* Ignore meeting-related attachments when extracting MSG files instead of raising a `TypeError`

## v5.2.0

### New Features
Expand Down
2 changes: 1 addition & 1 deletion digiarch/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "5.2.0"
__version__ = "5.2.1"
3 changes: 2 additions & 1 deletion digiarch/commands/extract/extractors/extractor_msg.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from extract_msg import openMsg
from extract_msg import SignedAttachment
from extract_msg.exceptions import ExMsgBaseException
from extract_msg.msg_classes import MeetingRelated
from extract_msg.msg_classes import MessageSigned

from digiarch.common import sanitize_filename
Expand Down Expand Up @@ -72,7 +73,7 @@ def msg_attachment(attachment: AttachmentBase) -> Message | bool | None:
try:
if not attachment.data:
return None
elif isinstance(attachment.data, (Message, MessageSigned)):
elif isinstance(attachment.data, (Message, MessageSigned, MeetingRelated)):
attachment_msg = attachment.data
elif isinstance(attachment.data, bytes):
attachment_msg = openMsg(attachment.data, delayAttachments=True)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "digiarch"
version = "5.2.0"
version = "5.2.1"
description = "Tools for the Digital Archive Project at Aarhus Stadsarkiv"
authors = ["Aarhus Stadsarkiv <[email protected]>"]
license = "GPL-3.0"
Expand Down

0 comments on commit 6203390

Please sign in to comment.