<commit_before>import pytest
import json
from webtest import TestApp as Client
from wsgi_graphql import wsgi_graphql, wsgi_graphql_dynamic

from graphql.core.type import (
    GraphQLObjectType,
    GraphQLField,
    GraphQLArgument,
    GraphQLNonNull,
    GraphQLSchema,
    GraphQLString,
)


def raises(*_):
    raise Exception("Throws!")


def resolver(root, args, *_):
    return 'Hello ' + (args['who'] or 'World')


TestSchema = GraphQLSchema(<commit_msg>Make this pass with graphql-core. The behavior is as expected, but the error handling is obscure.<commit_after>import pytest
import json
from webtest import TestApp as Client
from wsgi_graphql import wsgi_graphql, wsgi_graphql_dynamic

from graphql.core.type import (
    GraphQLObjectType,
    GraphQLField,
    GraphQLArgument,
    GraphQLNonNull,
    GraphQLSchema,
    GraphQLString,
)


def raises(*_):
    raise Exception("Throws!")


def resolver(root, args, *_):
    return 'Hello ' + args.get('who', 'World')


TestSchema = GraphQLSchema(
{'fraction_non_alphanumeric': 0.08712871287128712, 'fraction_numerical': 0.0, 'mean_word_length': 4.406417112299465, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6244584', 'n_tokens_mistral': 330, 'n_tokens_neox': 317, 'n_words': 89}