diff --git a/zerver/lib/actions.py b/zerver/lib/actions.py index e66390ed44..e03d1f6178 100644 --- a/zerver/lib/actions.py +++ b/zerver/lib/actions.py @@ -2226,8 +2226,9 @@ def convert_html_to_markdown(html): try: # A body width of 0 means do not try to wrap the text for us. p = subprocess.Popen( - ["html2text", "--body-width=0"], stdout=subprocess.PIPE, + [command, "--body-width=0"], stdout=subprocess.PIPE, stdin=subprocess.PIPE, stderr=subprocess.STDOUT) + break except OSError: continue