mirror of
https://github.com/aljazceru/chatgpt-telegram-bot.git
synced 2025-12-22 15:14:54 +01:00
also handle generic error while streaming response
This commit is contained in:
@@ -375,6 +375,10 @@ class ChatGPT3TelegramBot:
|
|||||||
logging.warning(str(e))
|
logging.warning(str(e))
|
||||||
await asyncio.sleep(1)
|
await asyncio.sleep(1)
|
||||||
|
|
||||||
|
except Exception as e:
|
||||||
|
logging.warning(str(e))
|
||||||
|
continue
|
||||||
|
|
||||||
await asyncio.sleep(0.01)
|
await asyncio.sleep(0.01)
|
||||||
|
|
||||||
i += 1
|
i += 1
|
||||||
|
|||||||
Reference in New Issue
Block a user