Advertisement
artursn

Untitled

Nov 10th, 2020 (edited)
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.52 KB | None | 0 0
  1. | 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"}}
  2. Traceback (most recent call last):
  3.  
  4. File "/app/app/core/utils/feed_worker/broadcast.py", line 80, in send_news
  5. return await getattr(bot, f"send_{current_news.type.name.lower()}")(**params)
  6. │ └ {'chat_id': 377951053, 'caption': '<b>Лучший гол</b> выходных: блистательный удар скорпионом от <b>Валентино Лазаро</b>!', 'r...
  7. └ <aiogram.bot.bot.Bot object at 0x7f3fa73fbe80>
  8.  
  9. File "/usr/local/lib/python3.8/site-packages/aiogram/bot/bot.py", line 466, in send_video
  10. result = await self.request(api.Methods.SEND_VIDEO, payload, files)
  11. │ │ │ │ │ │ └ {}
  12. │ │ │ │ │ └ {'chat_id': 377951053, 'caption': '<b>Лучший гол</b> выходных: блистательный удар скорпионом от <b>Валентино Лазаро</b>!', 'r...
  13. │ │ │ │ └ <aiogram.utils.helper.Item object at 0x7f3fa7886700>
  14. │ │ │ └ <class 'aiogram.bot.api.Methods'>
  15. │ │ └ <module 'aiogram.bot.api' from '/usr/local/lib/python3.8/site-packages/aiogram/bot/api.py'>
  16. │ └ <function BaseBot.request at 0x7f3fa73c5790>
  17. └ <aiogram.bot.bot.Bot object at 0x7f3fa73fbe80>
  18. File "/usr/local/lib/python3.8/site-packages/aiogram/bot/base.py", line 200, in request
  19. return await api.make_request(self.session, self.__token, method, data, files,
  20. │ │ │ │ │ │ │ └ {}
  21. │ │ │ │ │ │ └ {'chat_id': 377951053, 'caption': '<b>Лучший гол</b> выходных: блистательный удар скорпионом от <b>Валентино Лазаро</b>!', 'r...
  22. │ │ │ │ │ └ 'sendVideo'
  23. │ │ │ │ └ <aiogram.bot.bot.Bot object at 0x7f3fa73fbe80>
  24. │ │ │ └ <property object at 0x7f3fa7dbab30>
  25. │ │ └ <aiogram.bot.bot.Bot object at 0x7f3fa73fbe80>
  26. │ └ <function make_request at 0x7f3fa7884d30>
  27. └ <module 'aiogram.bot.api' from '/usr/local/lib/python3.8/site-packages/aiogram/bot/api.py'>
  28. File "/usr/local/lib/python3.8/site-packages/aiogram/bot/api.py", line 104, in make_request
  29. return check_result(method, response.content_type, response.status, await response.text())
  30. │ │ │ │ │ │ │ └ <function ClientResponse.text at 0x7f3fa7a129d0>
  31. │ │ │ │ │ │ └ <ClientResponse(https://api.telegram.org/bot1319995825:AAGWmNtxpqhg1tg2AUpQzMANifnuo6K879s/sendVideo) [403 Forbidden]>
  32. │ │ │ │ │ │ <CIMul...
  33. │ │ │ │ │ └ 403
  34. │ │ │ │ └ <ClientResponse(https://api.telegram.org/bot1319995825:AAGWmNtxpqhg1tg2AUpQzMANifnuo6K879s/sendVideo) [403 Forbidden]>
  35. │ │ │ │ <CIMul...
  36. │ │ │ └ <property object at 0x7f3fa7dc7f90>
  37. │ │ └ <ClientResponse(https://api.telegram.org/bot1319995825:AAGWmNtxpqhg1tg2AUpQzMANifnuo6K879s/sendVideo) [403 Forbidden]>
  38. │ │ <CIMul...
  39. │ └ 'sendVideo'
  40. └ <function check_result at 0x7f3fa7884790>
  41. File "/usr/local/lib/python3.8/site-packages/aiogram/bot/api.py", line 84, in check_result
  42. exceptions.Unauthorized.detect(description)
  43. │ │ │ └ 'Forbidden: bot was blocked by the user'
  44. │ │ └ <classmethod object at 0x7f3fa73bb6a0>
  45. │ └ <class 'aiogram.utils.exceptions.Unauthorized'>
  46. └ <module 'aiogram.utils.exceptions' from '/usr/local/lib/python3.8/site-packages/aiogram/utils/exceptions.py'>
  47. File "/usr/local/lib/python3.8/site-packages/aiogram/utils/exceptions.py", line 137, in detect
  48. raise err(cls.text or description)
  49. │ │ │ └ 'forbidden: bot was blocked by the user'
  50. │ │ └ None
  51. │ └ <class 'aiogram.utils.exceptions.Unauthorized'>
  52. └ <class 'aiogram.utils.exceptions.BotBlocked'>
  53.  
  54. aiogram.utils.exceptions.BotBlocked: Forbidden: bot was blocked by the user
  55.  
  56.  
  57. During handling of the above exception, another exception occurred:
  58.  
  59.  
  60. Traceback (most recent call last):
  61.  
  62. File "/usr/local/lib/python3.8/runpy.py", line 194, in _run_module_as_main
  63. return _run_code(code, main_globals, None,
  64. │ │ └ {'__name__': '__main__', '__doc__': None, '__package__': 'app', '__loader__': <_frozen_importlib_external.SourceFileLoader ob...
  65. │ └ <code object <module> at 0x7f3fa8fce3a0, file "/app/app/__main__.py", line 1>
  66. └ <function _run_code at 0x7f3fa90d8160>
  67. File "/usr/local/lib/python3.8/runpy.py", line 87, in _run_code
  68. exec(code, run_globals)
  69. │ └ {'__name__': '__main__', '__doc__': None, '__package__': 'app', '__loader__': <_frozen_importlib_external.SourceFileLoader ob...
  70. └ <code object <module> at 0x7f3fa8fce3a0, file "/app/app/__main__.py", line 1>
  71.  
  72. File "/app/app/__main__.py", line 32, in <module>
  73. web.run_app(app_factory(misc.app), port=config.BOT_PUBLIC_PORT)
  74. │ │ │ │ │ │ └ 80
  75. │ │ │ │ │ └ <module 'app.config' from '/app/app/config.py'>
  76. │ │ │ │ └ <Application 0x7f3fa8e6f520>
  77. │ │ │ └ <module 'app.misc' from '/app/app/misc.py'>
  78. │ │ └ <function app_factory at 0x7f3fa8f7f790>
  79. │ └ <function run_app at 0x7f3fa8e7b160>
  80. └ <module 'aiohttp.web' from '/usr/local/lib/python3.8/site-packages/aiohttp/web.py'>
  81.  
  82. File "/usr/local/lib/python3.8/site-packages/aiohttp/web.py", line 508, in run_app
  83. loop.run_until_complete(main_task)
  84. │ │ └ <Task pending name='Task-1' coro=<_run_app() running at /usr/local/lib/python3.8/site-packages/aiohttp/web.py:429> wait_for=<...
  85. │ └ <method 'run_until_complete' of 'uvloop.loop.Loop' objects>
  86. └ <uvloop.Loop running=True closed=False debug=False>
  87. File "/usr/local/lib/python3.8/site-packages/aiogram/dispatcher/handler.py", line 117, in notify
  88. response = await handler_obj.handler(*args, **partial_data)
  89. │ │ │ └ {}
  90. │ │ └ (<aiogram.types.update.Update object at 0x7f3fa6b11880>, AttributeError("module 'tortoise.exceptions' has no attribute 'UserD...
  91. │ └ <function errors_handler at 0x7f3fa64a3dc0>
  92. └ Handler.HandlerObj(handler=<function errors_handler at 0x7f3fa64a3dc0>, spec=FullArgSpec(args=['update', 'exception'], vararg...
  93.  
  94. > File "/app/app/handlers/errors/errors.py", line 26, in errors_handler
  95. raise exception
  96. └ AttributeError("module 'tortoise.exceptions' has no attribute 'UserDeactivated'")
  97.  
  98. File "/usr/local/lib/python3.8/site-packages/aiogram/dispatcher/filters/builtin.py", line 568, in check
  99. raise exception
  100. └ AttributeError("module 'tortoise.exceptions' has no attribute 'UserDeactivated'")
  101. File "/usr/local/lib/python3.8/site-packages/aiogram/dispatcher/filters/builtin.py", line 568, in check
  102. raise exception
  103. └ AttributeError("module 'tortoise.exceptions' has no attribute 'UserDeactivated'")
  104. File "/usr/local/lib/python3.8/site-packages/aiogram/dispatcher/filters/builtin.py", line 568, in check
  105. raise exception
  106. └ AttributeError("module 'tortoise.exceptions' has no attribute 'UserDeactivated'")
  107. File "/usr/local/lib/python3.8/site-packages/aiogram/dispatcher/dispatcher.py", line 1190, in process_response
  108. response = task.result()
  109. │ └ <method 'result' of '_asyncio.Task' objects>
  110. └ <Task finished name='Task-128' coro=<start_posting() done, defined at /app/app/handlers/admin/add_news.py:531> exception=Attr...
  111.  
  112. File "/app/app/handlers/admin/add_news.py", line 536, in start_posting
  113. await mailing(data["current_news_id"])
  114. │ └ <aiogram.dispatcher.storage.FSMContextProxy object at 0x7f3fa6af4460>
  115. └ <function mailing at 0x7f3fa65135e0>
  116.  
  117. File "/app/app/core/utils/feed_worker/broadcast.py", line 117, in mailing
  118. await send_news(news_id, subscription)
  119. │ │ └ 377951053
  120. │ └ 192
  121. └ <function send_news at 0x7f3fa6513670>
  122.  
  123. File "/app/app/core/utils/feed_worker/broadcast.py", line 89, in send_news
  124. except exceptions.UserDeactivated:
  125. └ <module 'tortoise.exceptions' from '/usr/local/lib/python3.8/site-packages/tortoise/exceptions.py'>
  126.  
  127. AttributeError: module 'tortoise.exceptions' has no attribute 'UserDeactivated'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement