iuriguilherme / iacecil

O repositório mais fofo do Github
GNU General Public License v3.0
3 stars 1 forks source link

Referência nula #20

Open iuriguilherme opened 1 year ago

iuriguilherme commented 1 year ago
aiogram.utils.exceptions.BadRequest: Not enough rights to send text messages to the chat

During handling of the above exception, aasnother exception occurred:

Traceback (most recent call last):
  File "iacecil/src/iacecil/controllers/aiogram_bot/bot.py", line 233, in exception_handler
    await error_callback(
  File iacecil/src/iacecil/controllers/aiogram_bot/callbacks.py", line 89, in error_callback
    await debug_logger(error, message, exception, descriptions)
  File "iacecil/src/iacecil/controllers/log.py", line 116, in debug_logger
    bot: Bot = dispatcher.bot
AttributeError: 'NoneType' object has no attribute 'bot'