Skip to content

Commit

Permalink
better logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Jsyro committed Nov 7, 2024
1 parent 03e7aa8 commit 962f5e9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion services/core-api/app/api/services/traction_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,11 @@ def sign_add_data_integrity_proof(self, verificationMethod: str, credential: Bas

post_resp = requests.post(
traction_vc_di_add_proof, json=payload, headers=self.get_headers())
return post_resp.json()
if post_resp.ok:
return post_resp.json()
else:
raise VerificableCredentialWorkflowError(
f"Error while adding data integrity signature, {post_resp.text}")

def fetch_a_random_did_key(self):
get_resp = requests.get(
Expand Down

0 comments on commit 962f5e9

Please sign in to comment.