fixed bot and server connectivity issues
This commit is contained in:
@@ -2,6 +2,7 @@ from aiogram import Router, types
|
||||
from aiogram.filters import Command
|
||||
from aiogram.types import Message, InlineKeyboardMarkup, InlineKeyboardButton
|
||||
from decimal import Decimal
|
||||
import aiohttp
|
||||
from tg_bot.config.settings import settings
|
||||
from tg_bot.payment.yookassa.client import yookassa_client
|
||||
from tg_bot.domain.services.user_service import UserService
|
||||
@@ -29,8 +30,10 @@ async def cmd_buy(message: Message):
|
||||
f"Новая подписка будет добавлена к текущей.",
|
||||
parse_mode="HTML"
|
||||
)
|
||||
except Exception:
|
||||
pass
|
||||
except aiohttp.ClientError as e:
|
||||
print(f"Не удалось подключиться к backend при проверке подписки: {e}")
|
||||
except Exception as e:
|
||||
print(f"Ошибка при проверке подписки: {e}")
|
||||
|
||||
await message.answer(
|
||||
"*Создаю ссылку для оплаты...*\n\n"
|
||||
|
||||
Reference in New Issue
Block a user