Skip to content

Commit

Permalink
Merge pull request #102 from nylas/incident-20231214-ews-id-is-in-ews…
Browse files Browse the repository at this point in the history
…legacyid-format-error-causing-sync-delays-2

[*] Get xml msg text when hitting legacy id format error
  • Loading branch information
pengfeiye authored Dec 15, 2023
2 parents 678ddf6 + f47afd5 commit 9d7a8a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion exchangelib/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,8 @@ def _get_elements_in_response(self, response):
for c in self._get_elements_in_container(container=container_or_exc):
yield c
except ErrorInvalidIdMalformedEwsLegacyIdFormat as e:
log.error('Caught ErrorInvalidIdMalformedEwsLegacyIdFormat error', e=e, exc_info=True, msg=msg)
msg_text = get_xml_attr(msg, '{%s}MessageText' % MNS)
log.error('Caught ErrorInvalidIdMalformedEwsLegacyIdFormat error', e=e, exc_info=True, response_msg=msg_text)
continue

@staticmethod
Expand Down

0 comments on commit 9d7a8a1

Please sign in to comment.