Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- | ERROR | app.handlers.errors.errors:errors_handler:28 - Cause exception module 'tortoise.exceptions' has no attribute 'UserDeactivated' in update {"update_id":354532973,"callback_query":{"id":"4828817959863957557","from":{"id":1124296793,"is_bot":false,"first_name":"Sergey","last_name":"SMM","username":"dufin","language_code":"ru"},"message":{"message_id":5959,"from":{"id":1319995825,"is_bot":true,"first_name":"SportNews","username":"NewsSports_bot"},"chat":{"id":1124296793,"first_name":"Sergey","last_name":"SMM","username":"dufin","type":"private"},"date":1604998920,"text":"Выберите режим рассылки:","reply_markup":{"inline_keyboard":[[{"text":"Запланировать отложенную рассылку","callback_data":"create_news:schedule_posting"}],[{"text":"Начать рассылку","callback_data":"create_news:start_posting"}],[{"text":"⬅️Назад","callback_data":"create_news:back_to_manage_content"}]]}},"chat_instance":"3210465438700701318","data":"create_news:start_posting"}}
- Traceback (most recent call last):
- File "/app/app/core/utils/feed_worker/broadcast.py", line 80, in send_news
- return await getattr(bot, f"send_{current_news.type.name.lower()}")(**params)
- │ └ {'chat_id': 377951053, 'caption': '<b>Лучший гол</b> выходных: блистательный удар скорпионом от <b>Валентино Лазаро</b>!', 'r...
- └ <aiogram.bot.bot.Bot object at 0x7f3fa73fbe80>
- File "/usr/local/lib/python3.8/site-packages/aiogram/bot/bot.py", line 466, in send_video
- result = await self.request(api.Methods.SEND_VIDEO, payload, files)
- │ │ │ │ │ │ └ {}
- │ │ │ │ │ └ {'chat_id': 377951053, 'caption': '<b>Лучший гол</b> выходных: блистательный удар скорпионом от <b>Валентино Лазаро</b>!', 'r...
- │ │ │ │ └ <aiogram.utils.helper.Item object at 0x7f3fa7886700>
- │ │ │ └ <class 'aiogram.bot.api.Methods'>
- │ │ └ <module 'aiogram.bot.api' from '/usr/local/lib/python3.8/site-packages/aiogram/bot/api.py'>
- │ └ <function BaseBot.request at 0x7f3fa73c5790>
- └ <aiogram.bot.bot.Bot object at 0x7f3fa73fbe80>
- File "/usr/local/lib/python3.8/site-packages/aiogram/bot/base.py", line 200, in request
- return await api.make_request(self.session, self.__token, method, data, files,
- │ │ │ │ │ │ │ └ {}
- │ │ │ │ │ │ └ {'chat_id': 377951053, 'caption': '<b>Лучший гол</b> выходных: блистательный удар скорпионом от <b>Валентино Лазаро</b>!', 'r...
- │ │ │ │ │ └ 'sendVideo'
- │ │ │ │ └ <aiogram.bot.bot.Bot object at 0x7f3fa73fbe80>
- │ │ │ └ <property object at 0x7f3fa7dbab30>
- │ │ └ <aiogram.bot.bot.Bot object at 0x7f3fa73fbe80>
- │ └ <function make_request at 0x7f3fa7884d30>
- └ <module 'aiogram.bot.api' from '/usr/local/lib/python3.8/site-packages/aiogram/bot/api.py'>
- File "/usr/local/lib/python3.8/site-packages/aiogram/bot/api.py", line 104, in make_request
- return check_result(method, response.content_type, response.status, await response.text())
- │ │ │ │ │ │ │ └ <function ClientResponse.text at 0x7f3fa7a129d0>
- │ │ │ │ │ │ └ <ClientResponse(https://api.telegram.org/bot1319995825:AAGWmNtxpqhg1tg2AUpQzMANifnuo6K879s/sendVideo) [403 Forbidden]>
- │ │ │ │ │ │ <CIMul...
- │ │ │ │ │ └ 403
- │ │ │ │ └ <ClientResponse(https://api.telegram.org/bot1319995825:AAGWmNtxpqhg1tg2AUpQzMANifnuo6K879s/sendVideo) [403 Forbidden]>
- │ │ │ │ <CIMul...
- │ │ │ └ <property object at 0x7f3fa7dc7f90>
- │ │ └ <ClientResponse(https://api.telegram.org/bot1319995825:AAGWmNtxpqhg1tg2AUpQzMANifnuo6K879s/sendVideo) [403 Forbidden]>
- │ │ <CIMul...
- │ └ 'sendVideo'
- └ <function check_result at 0x7f3fa7884790>
- File "/usr/local/lib/python3.8/site-packages/aiogram/bot/api.py", line 84, in check_result
- exceptions.Unauthorized.detect(description)
- │ │ │ └ 'Forbidden: bot was blocked by the user'
- │ │ └ <classmethod object at 0x7f3fa73bb6a0>
- │ └ <class 'aiogram.utils.exceptions.Unauthorized'>
- └ <module 'aiogram.utils.exceptions' from '/usr/local/lib/python3.8/site-packages/aiogram/utils/exceptions.py'>
- File "/usr/local/lib/python3.8/site-packages/aiogram/utils/exceptions.py", line 137, in detect
- raise err(cls.text or description)
- │ │ │ └ 'forbidden: bot was blocked by the user'
- │ │ └ None
- │ └ <class 'aiogram.utils.exceptions.Unauthorized'>
- └ <class 'aiogram.utils.exceptions.BotBlocked'>
- aiogram.utils.exceptions.BotBlocked: Forbidden: bot was blocked by the user
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/usr/local/lib/python3.8/runpy.py", line 194, in _run_module_as_main
- return _run_code(code, main_globals, None,
- │ │ └ {'__name__': '__main__', '__doc__': None, '__package__': 'app', '__loader__': <_frozen_importlib_external.SourceFileLoader ob...
- │ └ <code object <module> at 0x7f3fa8fce3a0, file "/app/app/__main__.py", line 1>
- └ <function _run_code at 0x7f3fa90d8160>
- File "/usr/local/lib/python3.8/runpy.py", line 87, in _run_code
- exec(code, run_globals)
- │ └ {'__name__': '__main__', '__doc__': None, '__package__': 'app', '__loader__': <_frozen_importlib_external.SourceFileLoader ob...
- └ <code object <module> at 0x7f3fa8fce3a0, file "/app/app/__main__.py", line 1>
- File "/app/app/__main__.py", line 32, in <module>
- web.run_app(app_factory(misc.app), port=config.BOT_PUBLIC_PORT)
- │ │ │ │ │ │ └ 80
- │ │ │ │ │ └ <module 'app.config' from '/app/app/config.py'>
- │ │ │ │ └ <Application 0x7f3fa8e6f520>
- │ │ │ └ <module 'app.misc' from '/app/app/misc.py'>
- │ │ └ <function app_factory at 0x7f3fa8f7f790>
- │ └ <function run_app at 0x7f3fa8e7b160>
- └ <module 'aiohttp.web' from '/usr/local/lib/python3.8/site-packages/aiohttp/web.py'>
- File "/usr/local/lib/python3.8/site-packages/aiohttp/web.py", line 508, in run_app
- loop.run_until_complete(main_task)
- │ │ └ <Task pending name='Task-1' coro=<_run_app() running at /usr/local/lib/python3.8/site-packages/aiohttp/web.py:429> wait_for=<...
- │ └ <method 'run_until_complete' of 'uvloop.loop.Loop' objects>
- └ <uvloop.Loop running=True closed=False debug=False>
- File "/usr/local/lib/python3.8/site-packages/aiogram/dispatcher/handler.py", line 117, in notify
- response = await handler_obj.handler(*args, **partial_data)
- │ │ │ └ {}
- │ │ └ (<aiogram.types.update.Update object at 0x7f3fa6b11880>, AttributeError("module 'tortoise.exceptions' has no attribute 'UserD...
- │ └ <function errors_handler at 0x7f3fa64a3dc0>
- └ Handler.HandlerObj(handler=<function errors_handler at 0x7f3fa64a3dc0>, spec=FullArgSpec(args=['update', 'exception'], vararg...
- > File "/app/app/handlers/errors/errors.py", line 26, in errors_handler
- raise exception
- └ AttributeError("module 'tortoise.exceptions' has no attribute 'UserDeactivated'")
- File "/usr/local/lib/python3.8/site-packages/aiogram/dispatcher/filters/builtin.py", line 568, in check
- raise exception
- └ AttributeError("module 'tortoise.exceptions' has no attribute 'UserDeactivated'")
- File "/usr/local/lib/python3.8/site-packages/aiogram/dispatcher/filters/builtin.py", line 568, in check
- raise exception
- └ AttributeError("module 'tortoise.exceptions' has no attribute 'UserDeactivated'")
- File "/usr/local/lib/python3.8/site-packages/aiogram/dispatcher/filters/builtin.py", line 568, in check
- raise exception
- └ AttributeError("module 'tortoise.exceptions' has no attribute 'UserDeactivated'")
- File "/usr/local/lib/python3.8/site-packages/aiogram/dispatcher/dispatcher.py", line 1190, in process_response
- response = task.result()
- │ └ <method 'result' of '_asyncio.Task' objects>
- └ <Task finished name='Task-128' coro=<start_posting() done, defined at /app/app/handlers/admin/add_news.py:531> exception=Attr...
- File "/app/app/handlers/admin/add_news.py", line 536, in start_posting
- await mailing(data["current_news_id"])
- │ └ <aiogram.dispatcher.storage.FSMContextProxy object at 0x7f3fa6af4460>
- └ <function mailing at 0x7f3fa65135e0>
- File "/app/app/core/utils/feed_worker/broadcast.py", line 117, in mailing
- await send_news(news_id, subscription)
- │ │ └ 377951053
- │ └ 192
- └ <function send_news at 0x7f3fa6513670>
- File "/app/app/core/utils/feed_worker/broadcast.py", line 89, in send_news
- except exceptions.UserDeactivated:
- └ <module 'tortoise.exceptions' from '/usr/local/lib/python3.8/site-packages/tortoise/exceptions.py'>
- AttributeError: module 'tortoise.exceptions' has no attribute 'UserDeactivated'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement