Explorar el Código

Clarify parser used, use html.parser for BeautifulSoup parsing

Guénaël Muller hace 7 años
padre
commit
52220db2b4
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      tracim/tracim/lib/email_fetcher.py

+ 1 - 1
tracim/tracim/lib/email_fetcher.py Ver fichero

@@ -87,7 +87,7 @@ class DecodedMail(object):
87 87
 
88 88
     @classmethod
89 89
     def _parse_html_body(cls, html_body: str):
90
-        soup = BeautifulSoup(html_body)
90
+        soup = BeautifulSoup(html_body,'html.parser')
91 91
         config = BEAUTIFULSOUP_HTML_BODY_PARSE_CONFIG
92 92
         for tag in soup.findAll():
93 93
             if DecodedMail._tag_to_extract(tag):