mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-08 21:36:13 +00:00
Merge remote-tracking branch 'origin/master' into 2.3.0
This commit is contained in:
@@ -203,7 +203,7 @@ class RESTClientObject(object):
|
||||
# log response body
|
||||
logger.debug("response body: %s", r.data)
|
||||
|
||||
if r.status not in range(200, 206):
|
||||
if not 200 <= r.status <= 299:
|
||||
raise ApiException(http_resp=r)
|
||||
|
||||
return r
|
||||
|
||||
Reference in New Issue
Block a user