green-api / issues

13 stars 0 forks source link

Требуется добавить обработку ошибок в библиотеку whatsapp-chatbot-python / Required to add exception handling in the whatsapp-chatbot-python library #407

Open Jibek100 opened 9 months ago

Jibek100 commented 9 months ago

Требуется Добавить обработку ошибок в библиотеку whatsapp-chatbot-python

Уровень Библиотеки

Обходное решение Обернуть команду bot.run_forever() в try-except блок, например:

try:
       bot.run_forever()
except requests.exceptions.HTTPError as e:
        print(f"An unexpected error occurred: {e}")

Required To add exception handling in the whatsapp-chatbot-python library

Level Libraries

Workaround To add try-except statement to bot.run_forever() statement, for example:

try:
       bot.run_forever()
except requests.exceptions.HTTPError as e:
        print(f"An unexpected error occurred: {e}")