Skip to content

Commit 8fd06d3

Browse files
authored
Merge pull request #7 from ekampf/patch-1
Resolve TypeError when raising GraphQL errors
2 parents 162b73d + a57ba7e commit 8fd06d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gql/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def execute(self, document, *args, **kwargs):
4949

5050
result = self._get_result(document, *args, **kwargs)
5151
if result.errors:
52-
raise result.errors[0]
52+
raise Exception(str(result.errors[0]))
5353

5454
return result.data
5555

0 commit comments

Comments
 (0)