We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6720944 commit 943a08eCopy full SHA for 943a08e
graphql/execution/executor.py
@@ -450,12 +450,13 @@ def resolve_or_error(
450
try:
451
return executor.execute(resolve_fn, source, info, **args)
452
except Exception as e:
453
- logger.exception(
454
- "An error occurred while resolving field {}.{}".format(
455
- info.parent_type.name, info.field_name
+ if not isinstance(e, GraphQLError):
+ logger.exception(
+ "An error occurred while resolving field {}.{}".format(
456
+ info.parent_type.name, info.field_name
457
+ )
458
)
- )
- e.stack = sys.exc_info()[2] # type: ignore
459
+ e.stack = sys.exc_info()[2] # type: ignore
460
return e
461
462
0 commit comments