Skip to content

Commit 0c3cbc6

Browse files
committed
Address feedback. change issuer send problem report.
1 parent 2351c6d commit 0c3cbc6

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

aries_cloudcontroller/controllers/issuer.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from aiohttp import ClientSession
33
import logging
44
from ..helpers.utils import extract_did, get_schema_details
5-
from .proof import ProofController
65

76
logger = logging.getLogger("aries_controller.issuer")
87

@@ -138,10 +137,7 @@ async def issue_credential(self, cred_ex_id, comment, attributes):
138137
except Exception as e:
139138
exc_msg = f"Could not issue credentials: {e!r}"
140139
logger.warn(exc_msg)
141-
ProofController = ProofController(self.admin_url, self.client_session)
142-
ProofController.send_problem_report(
143-
pres_ex_id=self.pres_ex_id, explanation=f"{e!r}"
144-
)
140+
self.send_problem_report(pres_ex_id=self.pres_ex_id, explanation=f"{e!r}")
145141
raise e(exc_msg)
146142

147143
# Store a received credential
@@ -169,7 +165,7 @@ async def remove_record(self, cred_ex_id):
169165
return await self.admin_DELETE(f"{self.base_url}/records/{cred_ex_id}")
170166

171167
# Send a problem report for a credential exchange
172-
async def problem_report(self, cred_ex_id, explanation: str):
168+
async def send_problem_report(self, cred_ex_id, explanation: str):
173169
body = {"explain_ltxt": explanation}
174170

175171
return await self.admin_POST(

0 commit comments

Comments
 (0)