From a4936011713bd01b30e04e22b396cc78dfc412db Mon Sep 17 00:00:00 2001 From: Jason Gunthorpe Date: Mon, 24 Jan 2022 17:24:32 -0600 Subject: [PATCH] o365: Remove problematic debug code in office365.py The assertion that the local message has not been linked to other places is overly cautions. Suggested-by: us91 Signed-off-by: Jason Gunthorpe --- cloud_mdir_sync/office365.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/cloud_mdir_sync/office365.py b/cloud_mdir_sync/office365.py index 6bb6e8a..9076907 100644 --- a/cloud_mdir_sync/office365.py +++ b/cloud_mdir_sync/office365.py @@ -799,11 +799,6 @@ async def merge_content(self, msgs: messages.CHMsgMappingDict_Type): if cmsg is not None and old_cmsg is not None and lmsg is not None: self._update_msg_flags(todo_flags, cmsg, old_cmsg.flags, lmsg) - # Debugging that the message really is to be deleted - if cmsg is not None and lmsg is None: - assert os.stat(os.path.join(self.msgdb.hashes_dir, - ch)).st_nlink == 1 - if cmsg is not None and (lmsg is None or lmsg.flags & messages.Message.FLAG_DELETED): # Delete cloud message