Skip to content

Commit

Permalink
Merge pull request #104 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-4

Fixing error logging that is raising key error
  • Loading branch information
pengfeiye authored Dec 15, 2023
2 parents 8538799 + 8a6517d commit 429da47
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion exchangelib/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,15 @@ def _get_elements_in_response(self, response):
yield c
except ErrorInvalidIdMalformedEwsLegacyIdFormat as e:
msg_text = get_xml_attr(msg, '{%s}MessageText' % MNS)
log.error('Caught ErrorInvalidIdMalformedEwsLegacyIdFormat error', error=str(e), exc_info=True, response_msg=msg_text)
log.error(
'Caught ErrorInvalidIdMalformedEwsLegacyIdFormat'
'\nerror: %s'
'\nmsg_response: %s',
str(e),
msg_text,
exc_info=True
)

continue

@staticmethod
Expand Down

0 comments on commit 429da47

Please sign in to comment.