Catch errors when installing pandoc

This commit is contained in:
Paul Gauthier 2024-07-18 09:58:47 +01:00
parent 032e1a7904
commit 903faa8fef

View file

@ -159,7 +159,12 @@ class Scraper:
except OSError:
pass
try:
pypandoc.download_pandoc(delete_installer=True)
except Exception as err:
self.print_error(f"Unable to install pandoc: {err}")
return
self.pandoc_available = True
def html_to_markdown(self, page_source):