|
@@ -109,7 +109,8 @@ class HtmlBodyMailParts(BodyMailParts):
|
109
|
109
|
if len(self._list) > 0:
|
110
|
110
|
txt = BeautifulSoup(value.text, 'html.parser').get_text()
|
111
|
111
|
txt = txt.replace('\n', '').strip()
|
112
|
|
- if not txt:
|
|
112
|
+ img = BeautifulSoup(value.text, 'html.parser').find('img')
|
|
113
|
+ if not txt and not img:
|
113
|
114
|
value.part_type = self._list[-1].part_type
|
114
|
115
|
BodyMailParts._check_value(value)
|
115
|
116
|
BodyMailParts._append(self, value)
|