We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 237e1f7 commit 9cbe51eCopy full SHA for 9cbe51e
1 file changed
watson_developer_cloud/watson_service.py
@@ -157,7 +157,7 @@ def get_headers(self):
157
def _to_dict(self):
158
_dict = {}
159
if hasattr(self, 'result') and self.result is not None:
160
- _dict['result'] = self.result
+ _dict['result'] = self.result if isinstance(self.result, dict) else 'Http response object'
161
if hasattr(self, 'headers') and self.headers is not None:
162
_dict['headers'] = self.headers
163
return _dict
0 commit comments