🐛 Fix BadRequest ret code

This commit is contained in:
xtaodada 2023-07-19 12:41:39 +08:00
parent 9970561cf7
commit e840edd614
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -37,7 +37,7 @@ class BadRequest(ApiHelperException):
if status_code is not None: if status_code is not None:
self.status_code = status_code self.status_code = status_code
if response is not None: if response is not None:
ret_code = response.get("ret_code") ret_code = response.get("retcode")
if ret_code is not None: if ret_code is not None:
self.ret_code = ret_code self.ret_code = ret_code
response_message = response.get("message") response_message = response.get("message")