From fe9eb7dc3841e995e87768ef4e3c675739b57d4f Mon Sep 17 00:00:00 2001 From: midoks Date: Sat, 7 Jan 2023 19:39:01 +0800 Subject: [PATCH] Update cert_api.py --- class/core/cert_api.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/class/core/cert_api.py b/class/core/cert_api.py index 9771ec857..cbdd77192 100644 --- a/class/core/cert_api.py +++ b/class/core/cert_api.py @@ -371,7 +371,9 @@ fi response = urllib.request.urlopen(req, timeout=timeout) return response except Exception as ex: - raise Exception("requestsPost: {}".format(str(ex))) + + self.getError() + raise Exception("requestsPost: {}".format(self.getError(str(ex)))) def getRequestJson(self, response): try: