Skip to content

Commit 23da341

Browse files
committed
Fix lint
1 parent 28dd0ad commit 23da341

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

elasticsearch/exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def __str__(self) -> str:
6161
if self.body and isinstance(self.body, dict) and "error" in self.body:
6262
if isinstance(self.body["error"], dict):
6363
root_cause = self.body["error"]["root_cause"][0]
64-
caused_by = self.body["error"].get("caused_by")
64+
caused_by = self.body["error"].get("caused_by", {})
6565
cause = ", ".join(
6666
filter(
6767
None,

0 commit comments

Comments
 (0)