From 57ec404ba3772a25b95b731cea223fccd8cad67a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Honza=20Kr=C3=A1l?= Date: Fri, 12 Jan 2018 17:35:07 +0100 Subject: [PATCH] Accurate description of TransportError.info Fixes #710, thank you, @fbacchella, for the report! --- elasticsearch/exceptions.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/elasticsearch/exceptions.py b/elasticsearch/exceptions.py index 5085c6f6..abac9c27 100644 --- a/elasticsearch/exceptions.py +++ b/elasticsearch/exceptions.py @@ -45,7 +45,10 @@ class TransportError(ElasticsearchException): @property def info(self): - """ Dict of returned error info from ES, where available. """ + """ + Dict of returned error info from ES, where available, underlying + exception when not. + """ return self.args[2] def __str__(self):