We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd72d4d commit d64d453Copy full SHA for d64d453
1 file changed
modules/openapi-generator/src/main/resources/python/exceptions.mustache
@@ -160,8 +160,11 @@ class ApiException(OpenApiException):
160
error_message += "HTTP response headers: {0}\n".format(
161
self.headers)
162
163
- if self.data or self.body:
164
- error_message += "HTTP response body: {0}\n".format(self.data or self.body)
+ if self.body:
+ error_message += "HTTP response body: {0}\n".format(self.body)
165
+
166
+ if self.data:
167
+ error_message += "HTTP response data: {0}\n".format(self.data)
168
169
return error_message
170
0 commit comments