Тест кода

This commit is contained in:
urec56 2024-08-27 20:24:39 +04:00
parent ff036d18d3
commit 5f5909cacd

View file

@ -75,6 +75,7 @@ class UserService:
async with RedisService(is_raise=True) as redis:
verification_code = await redis.get_value(key=f"user_verification_code: {user.id}")
except AttributeError:
logging.warning("Хуйня в редисе")
raise WrongCodeException
if verification_code != confirmation_code:
raise WrongCodeException