Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ошибка при первом запуске после обновления #7

Open
Nord1cWarr1or opened this issue Sep 13, 2024 · 1 comment

Comments

@Nord1cWarr1or
Copy link

Nord1cWarr1or commented Sep 13, 2024

Обновил бота, и при первом запуске, после логина бот упал.
Повторный запуск увенчался успехом, без проблем. Но я решил зарепортить на всякий случай.

Traceback (most recent call last):
File "/home/wp/tgbots/BlumBot/bot/core/bot.py", line 124, in daily_reward
log.warning(f"{self.session_name} | Unknown response in daily reward: {response_text}")
File "/home/wp/tgbots/BlumBot/venv/lib/python3.10/site-packages/loguru/_logger.py", line 2052, in warning
__self._log("WARNING", False, __self._options, __message, args, kwargs)
File "/home/wp/tgbots/BlumBot/venv/lib/python3.10/site-packages/loguru/_logger.py", line 2017, in _log
colored_message = Colorizer.prepare_simple_message(str(message))
File "/home/wp/tgbots/BlumBot/venv/lib/python3.10/site-packages/loguru/_colorizer.py", line 368, in prepare_simple_message
parser.feed(string)
File "/home/wp/tgbots/BlumBot/venv/lib/python3.10/site-packages/loguru/_colorizer.py", line 252, in feed
raise ValueError(
ValueError: Tag "<![endif]-->" does not correspond to any known color directive, make sure you did not misspelled it (or prepend '\' to escape it)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/wp/tgbots/BlumBot/bot/core/bot.py", line 362, in run
daily_claimed = await self.daily_reward()
File "/home/wp/tgbots/BlumBot/bot/core/bot.py", line 131, in daily_reward
log.error(f"{self.session_name} | Daily reward error: {str(error)}")
File "/home/wp/tgbots/BlumBot/bot/core/bot.py", line 131, in daily_reward                                                                                                                                                                                                                       [0/923]
log.error(f"{self.session_name} | Daily reward error: {str(error)}")
File "/home/wp/tgbots/BlumBot/venv/lib/python3.10/site-packages/loguru/_logger.py", line 2056, in error
__self._log("ERROR", False, __self._options, __message, args, kwargs)
File "/home/wp/tgbots/BlumBot/venv/lib/python3.10/site-packages/loguru/_logger.py", line 2017, in _log
colored_message = Colorizer.prepare_simple_message(str(message))
File "/home/wp/tgbots/BlumBot/venv/lib/python3.10/site-packages/loguru/_colorizer.py", line 368, in prepare_simple_message
parser.feed(string)
File "/home/wp/tgbots/BlumBot/venv/lib/python3.10/site-packages/loguru/_colorizer.py", line 252, in feed
raise ValueError(
ValueError: Tag "<![endif]-->" does not correspond to any known color directive, make sure you did not misspelled it (or prepend '\' to escape it)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/wp/tgbots/BlumBot/main.py", line 11, in <module>
asyncio.run(main())
File "/home/wp/.pyenv/versions/3.10.12/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/home/wp/.pyenv/versions/3.10.12/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
return future.result()
File "/home/wp/tgbots/BlumBot/main.py", line 6, in main
await launcher.start()
File "/home/wp/tgbots/BlumBot/bot/core/launcher.py", line 108, in start
await run_clients(tg_clients=tg_clients)
File "/home/wp/tgbots/BlumBot/bot/core/launcher.py", line 84, in run_clients
await asyncio.gather(*tasks)
File "/home/wp/tgbots/BlumBot/bot/core/launcher.py", line 71, in run_bot_with_delay
await run_bot(tg_client=tg_client, proxy=proxy)
File "/home/wp/tgbots/BlumBot/bot/core/bot.py", line 429, in run_bot
await CryptoBot(tg_client=tg_client).run(proxy=proxy)
File "/home/wp/tgbots/BlumBot/bot/core/bot.py", line 421, in run
log.error(f"{self.session_name} | Unknown error: {error}")
File "/home/wp/tgbots/BlumBot/venv/lib/python3.10/site-packages/loguru/_logger.py", line 2056, in error
__self._log("ERROR", False, __self._options, __message, args, kwargs)
File "/home/wp/tgbots/BlumBot/venv/lib/python3.10/site-packages/loguru/_logger.py", line 2017, in _log
colored_message = Colorizer.prepare_simple_message(str(message))
File "/home/wp/tgbots/BlumBot/venv/lib/python3.10/site-packages/loguru/_colorizer.py", line 368, in prepare_simple_message
parser.feed(string)
File "/home/wp/tgbots/BlumBot/venv/lib/python3.10/site-packages/loguru/_colorizer.py", line 252, in feed
raise ValueError(
ValueError: Tag "<![endif]-->" does not correspond to any known color directive, make sure you did not misspelled it (or prepend '\' to escape it)
@whereispie
Copy link

подтяни свежий код, мб старый у тебя

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants