Тест кода
This commit is contained in:
parent
ff036d18d3
commit
5f5909cacd
1 changed files with 1 additions and 0 deletions
|
@ -75,6 +75,7 @@ class UserService:
|
||||||
async with RedisService(is_raise=True) as redis:
|
async with RedisService(is_raise=True) as redis:
|
||||||
verification_code = await redis.get_value(key=f"user_verification_code: {user.id}")
|
verification_code = await redis.get_value(key=f"user_verification_code: {user.id}")
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
|
logging.warning("Хуйня в редисе")
|
||||||
raise WrongCodeException
|
raise WrongCodeException
|
||||||
if verification_code != confirmation_code:
|
if verification_code != confirmation_code:
|
||||||
raise WrongCodeException
|
raise WrongCodeException
|
||||||
|
|
Loading…
Add table
Reference in a new issue