Skip to content

Commit

Permalink
Fixed error in openai.error.APIConnectionError -> openai.APIConnectio…
Browse files Browse the repository at this point in the history
…nError
  • Loading branch information
jezs00 committed Jun 9, 2024
1 parent a5da5bd commit 6df0123
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/piblo/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def get_image_from_string(self, text, height=0, width=0):
url = response.data[0].url
img = Image.open(BytesIO(requests.get(url).content))

except openai.error.APIConnectionError as e:
except openai.APIConnectionError as e:
logging.error(e)
logging.error("Unable to contact OpenAI. Internet or provider may be down.")
return None
Expand Down

0 comments on commit 6df0123

Please sign in to comment.