Skip to content

Commit 57ec404

Browse files
committed
Accurate description of TransportError.info
Fixes elastic#710, thank you, @fbacchella, for the report!
1 parent 1cae2b7 commit 57ec404

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

elasticsearch/exceptions.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@ def error(self):
4545

4646
@property
4747
def info(self):
48-
""" Dict of returned error info from ES, where available. """
48+
"""
49+
Dict of returned error info from ES, where available, underlying
50+
exception when not.
51+
"""
4952
return self.args[2]
5053

5154
def __str__(self):

0 commit comments

Comments
 (0)