From 8d4175536fc0d69269ea6d38bc6ba8e70e24d542 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Thu, 7 Nov 2024 12:45:32 -0800 Subject: [PATCH] style: fix linting issues and whitespace in exceptions.py --- aider/exceptions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aider/exceptions.py b/aider/exceptions.py index 41a977985..12d2761ad 100644 --- a/aider/exceptions.py +++ b/aider/exceptions.py @@ -1,5 +1,6 @@ from dataclasses import dataclass + def retry_exceptions(): import httpx import openai @@ -37,6 +38,7 @@ class ExInfo: retry: bool description: str + EXCEPTIONS = [ ExInfo("APIConnectionError", True, None), ExInfo("APIError", True, None), @@ -93,6 +95,5 @@ class LiteLLMExceptions: return self.exceptions.get(ex.__class__) - litellm_ex = LiteLLMExceptions() litellm_ex._load(strict=True)