Change object to str

Signed-off-by: Yasir Aris M <git@yasirdev.my.id>
This commit is contained in:
Yasir Aris M 2024-02-11 21:48:12 +07:00 committed by GitHub
parent 8fe69d3457
commit 56c53f9dd6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -105,7 +105,7 @@ async def openai_chatbot(_, ctx: Message, strings):
strings("answers_too_long").format(answerlink=answerlink), strings("answers_too_long").format(answerlink=answerlink),
disable_web_page_preview=True, disable_web_page_preview=True,
) )
except APIConnectionError as e: except APIConnectionError as str(e):
await msg.edit_msg(f"The server could not be reached because {e.__cause__}") await msg.edit_msg(f"The server could not be reached because {e.__cause__}")
except RateLimitError as e: except RateLimitError as e:
if "billing details" in e: if "billing details" in e: