From ca10fbc3b59a8aabc5048e487f520cc307ce5159 Mon Sep 17 00:00:00 2001 From: midoks Date: Tue, 15 Nov 2022 16:49:49 +0800 Subject: [PATCH] Update cert_api.py --- class/core/cert_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/class/core/cert_api.py b/class/core/cert_api.py index d757721c2..8aa298aee 100644 --- a/class/core/cert_api.py +++ b/class/core/cert_api.py @@ -707,8 +707,8 @@ class cert_api: self.getKid() self.getNonce(force=True) res = self.acmeRequest(self.__apis['newOrder'], payload) - if not res.status_code in [201]: - a_auth = res.json() + if not res.status in [201]: + a_auth = e_body ret_title = self.getError(str(a_auth)) raise StopIteration("{0} >>>> {1}".format(