File tree Expand file tree Collapse file tree 3 files changed +4
-17
lines changed Expand file tree Collapse file tree 3 files changed +4
-17
lines changed Original file line number Diff line number Diff line change @@ -228,11 +228,7 @@ async def execute(
228
228
f"Server did not return a GraphQL result: { result_text } "
229
229
)
230
230
231
- if (
232
- "errors" not in result
233
- and "data" not in result
234
- and "extensions" not in result
235
- ):
231
+ if "errors" not in result and "data" not in result :
236
232
result_text = await resp .text ()
237
233
raise TransportProtocolError (
238
234
"Server did not return a GraphQL result: "
Original file line number Diff line number Diff line change @@ -168,11 +168,7 @@ def execute( # type: ignore
168
168
169
169
raise TransportProtocolError ("Server did not return a GraphQL result" )
170
170
171
- if (
172
- "errors" not in result
173
- and "data" not in result
174
- and "extensions" not in result
175
- ):
171
+ if "errors" not in result and "data" not in result :
176
172
raise TransportProtocolError ("Server did not return a GraphQL result" )
177
173
178
174
return ExecutionResult (
Original file line number Diff line number Diff line change @@ -297,14 +297,9 @@ def _parse_answer(
297
297
298
298
if answer_type == "data" :
299
299
300
- if (
301
- "errors" not in payload
302
- and "data" not in payload
303
- and "extensions" not in payload
304
- ):
300
+ if "errors" not in payload and "data" not in payload :
305
301
raise ValueError (
306
- "payload does not contain 'data' or 'errors' "
307
- "or 'extensions' fields"
302
+ "payload does not contain 'data' or 'errors' fields"
308
303
)
309
304
310
305
execution_result = ExecutionResult (
You can’t perform that action at this time.
0 commit comments