Skip to content

Commit 4d51cbe

Browse files
authored
[EWSO365] MyPy In Docker (#37990)
* fix * RN * autopep8
1 parent 9356b37 commit 4d51cbe

File tree

4 files changed

+21
-11
lines changed

4 files changed

+21
-11
lines changed

Packs/MicrosoftExchangeOnline/Integrations/EWSO365/EWSO365.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2201,11 +2201,15 @@ def decode_email_data(email_obj: Message):
22012201
def cast_mime_item_to_message(item):
22022202
mime_content = item.mime_content
22032203
email_policy = SMTP if mime_content.isascii() else SMTPUTF8
2204+
22042205
if isinstance(mime_content, str) and not mime_content.isascii():
22052206
mime_content = mime_content.encode()
2206-
message = email.message_from_bytes(mime_content, policy=email_policy) \
2207-
if isinstance(mime_content, bytes) \
2208-
else email.message_from_string(mime_content, policy=email_policy)
2207+
2208+
if isinstance(mime_content, bytes):
2209+
message = email.message_from_bytes(mime_content, policy=email_policy) # type: ignore[arg-type]
2210+
else:
2211+
message = email.message_from_string(mime_content, policy=email_policy) # type: ignore[arg-type]
2212+
22092213
return message
22102214

22112215

Packs/MicrosoftExchangeOnline/Integrations/EWSO365/EWSO365.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ configuration:
1212
required: false
1313
defaultvalue: Worldwide
1414
options:
15-
- Worldwide
16-
- US GCC
17-
- US GCC-High
18-
- DoD
19-
- Germany
20-
- China
15+
- Worldwide
16+
- US GCC
17+
- US GCC-High
18+
- DoD
19+
- Germany
20+
- China
2121
section: Connect
2222
advanced: true
2323
additionalinfo: More information about National clouds can be found here - https://xsoar.pan.dev/docs/reference/articles/microsoft-integrations---authentication#using-national-cloud
@@ -989,7 +989,7 @@ script:
989989
- description: Run this command if for some reason you need to rerun the authentication process.
990990
name: ews-auth-reset
991991
arguments: []
992-
dockerimage: demisto/py3ews:5.5.0.115535
992+
dockerimage: demisto/py3ews:5.5.0.117314
993993
isfetch: true
994994
script: ''
995995
subtype: python3
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
#### Integrations
3+
4+
##### EWS O365
5+
6+
Updated the Docker image to: *demisto/py3ews:5.5.0.117314*.

Packs/MicrosoftExchangeOnline/pack_metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "Microsoft Exchange Online",
33
"description": "Exchange Online and Office 365 (mail)",
44
"support": "xsoar",
5-
"currentVersion": "1.5.23",
5+
"currentVersion": "1.5.24",
66
"author": "Cortex XSOAR",
77
"url": "https://www.paloaltonetworks.com/cortex",
88
"email": "",

0 commit comments

Comments
 (0)