From 5f6ed30e11c6f4cd66415d6f362a1f06526003da Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Thu, 4 Jul 2024 11:21:57 -0300 Subject: [PATCH] swallow exceptions in load_slow_imports --- aider/main.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/aider/main.py b/aider/main.py index 078fa0540..5d62903e5 100644 --- a/aider/main.py +++ b/aider/main.py @@ -556,10 +556,13 @@ def load_slow_imports(): # improve startup time. # This func is called in a thread to load them in the background # while we wait for the user to type their first message. - import httpx # noqa: F401 - import litellm # noqa: F401 - import networkx # noqa: F401 - import numpy # noqa: F401 + try: + import httpx # noqa: F401 + import litellm # noqa: F401 + import networkx # noqa: F401 + import numpy # noqa: F401 + except Exception: + pass if __name__ == "__main__":