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