fmt
Some checks failed
Deploy on push / deploy (push) Failing after 3m38s

This commit is contained in:
2025-08-27 21:48:58 +03:00
parent f3fc6c34ae
commit 6a3862ad61
3 changed files with 10 additions and 3 deletions

View File

@@ -131,7 +131,9 @@ async def validate_graphql_context(info: GraphQLResolveInfo) -> None:
msg = "Internal server error: unable to set authentication context"
raise GraphQLError(msg)
except exc.NoResultFound:
logger.warning(f"[validate_graphql_context] Пользователь с ID {auth_state.author_id} не найден в базе данных")
logger.warning(
f"[validate_graphql_context] Пользователь с ID {auth_state.author_id} не найден в базе данных"
)
msg = "UnauthorizedError - user not found"
raise GraphQLError(msg) from None