Skip to content

Commit

Permalink
Fix flake8
Browse files Browse the repository at this point in the history
Signed-off-by: Anja Strunk <[email protected]>
  • Loading branch information
anjastrunk committed Sep 12, 2024
1 parent 2c905b2 commit 4962b65
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions generator/discovery/gxdch_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 4962b65

Please sign in to comment.