Skip to content
Snippets Groups Projects
Commit e470ee25 authored by Chris Lamb's avatar Chris Lamb :eyes:
Browse files

Catch CalledProcessError when calling html2text.

parent b8e3c6cb
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,7 @@
# along with diffoscope. If not, see <https://www.gnu.org/licenses/>.
import re
import subprocess
from diffoscope.difference import Difference
from diffoscope.exc import RequiredToolNotFound
......@@ -49,5 +50,7 @@ class HtmlFile(TextFile):
difference.add_details([text])
except RequiredToolNotFound as exc: # noqa
difference.add_comment(exc.get_comment())
except subprocess.CalledProcessError:
pass
return difference
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment