Update cert_api.py

This commit is contained in:
midoks 2023-01-07 19:39:01 +08:00
parent 94195b5246
commit fe9eb7dc38
1 changed files with 3 additions and 1 deletions

View File

@ -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: