From 903faa8fefc7534491e50f7ce68c57aed46ca2b1 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Thu, 18 Jul 2024 09:58:47 +0100 Subject: [PATCH] Catch errors when installing pandoc --- aider/scrape.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/aider/scrape.py b/aider/scrape.py index 81261a33e..5bc79b98f 100755 --- a/aider/scrape.py +++ b/aider/scrape.py @@ -159,7 +159,12 @@ class Scraper: except OSError: pass - pypandoc.download_pandoc(delete_installer=True) + 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):