mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 08:44:59 +00:00
style: fix linting issues and whitespace in exceptions.py
This commit is contained in:
parent
bba9ca3d5a
commit
8d4175536f
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue