diff --git a/generator/discovery/gxdch_services.py b/generator/discovery/gxdch_services.py index cd8ec63..8786a33 100644 --- a/generator/discovery/gxdch_services.py +++ b/generator/discovery/gxdch_services.py @@ -16,11 +16,11 @@ def __init__(self, api_url: str): def request_compliance_vc(self, vp: dict, vp_id) -> str: resp = requests.post(self.api + "/api/credential-offers?vcid=" + vp_id, json.dumps(vp)) - #try: - # resp.raise_for_status() - #except requests.exceptions.HTTPError as err: - # logging.error(resp.text) - # raise err + try: + resp.raise_for_status() + except requests.exceptions.HTTPError as err: + logging.error(resp.text) + raise err return resp.text