Skip to content

Commit 7ad0795

Browse files
committed
Always take the original stack
1 parent 1de69e5 commit 7ad0795

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

graphql/error/located_error.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@ def __init__(self, nodes, original_error=None):
1313
else:
1414
message = 'An unknown error occurred.'
1515

16-
if isinstance(original_error, GraphQLError):
17-
stack = original_error.stack
18-
else:
19-
stack = sys.exc_info()[2]
16+
stack = original_error.stack
2017

2118
super(GraphQLLocatedError, self).__init__(
2219
message=message,

0 commit comments

Comments
 (0)