diff --git a/resolvers/author.py b/resolvers/author.py index 01ed93ef..cc163685 100644 --- a/resolvers/author.py +++ b/resolvers/author.py @@ -174,7 +174,9 @@ async def get_author_follows(_, _info, slug='', user=None, author_id=0): else: raise ValueError('One of slug, user, or author_id must be provided') # logger.debug(author_query) - [author] = local_session().execute(author_query) + result = local_session().execute(author_query) + logger.debug(result) + [author] = result if isinstance(author, Author): logger.debug(author.dict()) author_id = author.id.scalar()