Skip to content

Commit 6df0123

Browse files
committed
Fixed error in openai.error.APIConnectionError -> openai.APIConnectionError
1 parent a5da5bd commit 6df0123

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/piblo/provider.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ def get_image_from_string(self, text, height=0, width=0):
259259
url = response.data[0].url
260260
img = Image.open(BytesIO(requests.get(url).content))
261261

262-
except openai.error.APIConnectionError as e:
262+
except openai.APIConnectionError as e:
263263
logging.error(e)
264264
logging.error("Unable to contact OpenAI. Internet or provider may be down.")
265265
return None

0 commit comments

Comments
 (0)