forked from loafle/openapi-generator-original
Fixed unicode error and supported allow_nonstandard_methods in tornado based python client (#7560)
* fixing "decoding Unicode is not supported" error for py2 when data is unicode * allowing nonstandard methods for tornado python client. * Making sure to return unicode when needed
This commit is contained in:
committed by
William Cheng
parent
ea27924f5c
commit
dfbef43743
@@ -541,7 +541,7 @@ class ApiClient(object):
|
||||
try:
|
||||
return klass(data)
|
||||
except UnicodeEncodeError:
|
||||
return six.u(data)
|
||||
return six.text_type(data)
|
||||
except TypeError:
|
||||
return data
|
||||
|
||||
|
||||
Reference in New Issue
Block a user