We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0eef81e commit 0db50e4Copy full SHA for 0db50e4
elasticsearch/helpers/errors.py
@@ -32,9 +32,9 @@ def __reduce__(
32
class ScanError(Exception):
33
scroll_id: str
34
35
- def __init__(self, scroll_id: str, shards_message: str) -> None:
36
- super().__init__(shards_message)
+ def __init__(self, scroll_id: str, *args: Any) -> None:
+ super().__init__(*args)
37
self.scroll_id = scroll_id
38
39
def __reduce__(self) -> Tuple[Type["ScanError"], Tuple[str, str]]:
40
- return (self.__class__, (self.scroll_id, self.args[0]))
+ return (self.__class__, (self.scroll_id,) + self.args)
0 commit comments