diff --git a/html_text/README.rst b/html_text/README.rst
index 7d9b8452e..b70b6fbfd 100644
--- a/html_text/README.rst
+++ b/html_text/README.rst
@@ -95,6 +95,7 @@ Contributors
* Dennis Sluijk
* `Tecnativa `_:",
* Helly kapatel
+* Mantas Šniukas
* Jairo Llopis
* Vicent Cubells
diff --git a/html_text/__manifest__.py b/html_text/__manifest__.py
index fe31f3989..746e99635 100644
--- a/html_text/__manifest__.py
+++ b/html_text/__manifest__.py
@@ -4,7 +4,7 @@
{
"name": "Text from HTML field",
"summary": "Generate excerpts from any HTML field",
- "version": "14.0.1.0.0",
+ "version": "15.0.1.0.0",
"category": "Tools",
"website": "https://github.com/OCA/server-tools",
"author": "Grupo ESOC Ingeniería de Servicios, "
diff --git a/html_text/readme/CONTRIBUTORS.rst b/html_text/readme/CONTRIBUTORS.rst
index bd6b8caf4..cb155b7d8 100644
--- a/html_text/readme/CONTRIBUTORS.rst
+++ b/html_text/readme/CONTRIBUTORS.rst
@@ -1,6 +1,7 @@
* Dennis Sluijk
* `Tecnativa `_:",
* Helly kapatel
+* Mantas Šniukas
* Jairo Llopis
* Vicent Cubells
diff --git a/html_text/tests/test_extractor.py b/html_text/tests/test_extractor.py
index 1f0b7c91c..8036eace4 100644
--- a/html_text/tests/test_extractor.py
+++ b/html_text/tests/test_extractor.py
@@ -1,6 +1,8 @@
# Copyright 2016-2017 Jairo Llopis
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
+from lxml import etree
+
from odoo.tests.common import TransactionCase
from odoo.tools import mute_logger
@@ -43,12 +45,12 @@ class ExtractorCase(TransactionCase):
def test_empty_html(self):
"""Empty HTML handled correctly."""
self.assertEqual(self.text_from_html(""), "")
- with self.assertRaises(Exception):
+ with self.assertRaises(etree.ParserError):
self.text_from_html("", fail=True)
@mute_logger("odoo.addons.html_text.models.ir_fields_converter")
def test_false_html(self):
"""``False`` HTML handled correctly."""
self.assertEqual(self.text_from_html(False), "")
- with self.assertRaises(Exception):
+ with self.assertRaises(TypeError):
self.text_from_html(False, fail=True)