This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user