From e840edd614c1f826a220d06cf49b9f930c785248 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Wed, 19 Jul 2023 12:41:39 +0800 Subject: [PATCH] :bug: Fix BadRequest ret code --- simnet/errors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simnet/errors.py b/simnet/errors.py index 8a89be4..b4c59df 100644 --- a/simnet/errors.py +++ b/simnet/errors.py @@ -37,7 +37,7 @@ class BadRequest(ApiHelperException): if status_code is not None: self.status_code = status_code if response is not None: - ret_code = response.get("ret_code") + ret_code = response.get("retcode") if ret_code is not None: self.ret_code = ret_code response_message = response.get("message")