diff options
-rw-r--r-- | b4/__init__.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/b4/__init__.py b/b4/__init__.py index 24451d4..16aa2c6 100644 --- a/b4/__init__.py +++ b/b4/__init__.py @@ -572,6 +572,12 @@ class LoreMessage: if diffre.search(payload): self.body = payload + if self.body is None: + # Woah, we didn't find any usable parts + logger.debug(' No plain or patch parts found in message') + logger.info(' Not plaintext: %s', self.full_subject) + return + if diffstatre.search(self.body): self.has_diffstat = True if diffre.search(self.body): |