Skip to content

Commit

Permalink
Another day, another error to handle.
Browse files Browse the repository at this point in the history
  • Loading branch information
Emery Berger committed Mar 29, 2024
1 parent c27694e commit 95b54f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coverup/coverup.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ async def do_chat(seg: CodeSegment, completion: dict) -> str:

return await litellm.acreate(**completion)

except (openai.RateLimitError, openai.APITimeoutError, litellm.APIError) as e:
except (openai.RateLimitError, openai.APITimeoutError, litellm.APIError, litellm.exceptions.ServiceUnavailableError) as e:

# This message usually indicates out of money in account
if 'You exceeded your current quota' in str(e):
Expand Down

0 comments on commit 95b54f0

Please sign in to comment.