Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Commit d78ee7e

Browse files
committed
Merge branch 'Ajay/920-batching-dos-attack' into staging
2 parents 0bd9229 + d618622 commit d78ee7e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

graphql_api/views.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -292,9 +292,7 @@ def error_formatter(self, error, debug=False):
292292
formatted["type"] = "ServerError"
293293
# if this is one of our own command exception, we can tell a bit more
294294
original_error = error.original_error
295-
if isinstance(original_error, BaseException) or isinstance(
296-
original_error, ServiceException
297-
):
295+
if isinstance(original_error, (BaseException, ServiceException, TimeoutError)):
298296
formatted["message"] = original_error.message
299297
formatted["type"] = type(original_error).__name__
300298
else:

0 commit comments

Comments
 (0)