Skip to content

Commit 0db50e4

Browse files
committed
Restore backwards compatibility
1 parent 0eef81e commit 0db50e4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

elasticsearch/helpers/errors.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ def __reduce__(
3232
class ScanError(Exception):
3333
scroll_id: str
3434

35-
def __init__(self, scroll_id: str, shards_message: str) -> None:
36-
super().__init__(shards_message)
35+
def __init__(self, scroll_id: str, *args: Any) -> None:
36+
super().__init__(*args)
3737
self.scroll_id = scroll_id
3838

3939
def __reduce__(self) -> Tuple[Type["ScanError"], Tuple[str, str]]:
40-
return (self.__class__, (self.scroll_id, self.args[0]))
40+
return (self.__class__, (self.scroll_id,) + self.args)

0 commit comments

Comments
 (0)