Skip to content

Commit

Permalink
Merge branch 'main' into ghi1745
Browse files Browse the repository at this point in the history
  • Loading branch information
ianco authored May 3, 2022
2 parents 8050bbd + ff68284 commit 2ea9393
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aries_cloudagent/config/argparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ def add_arguments(self, parser: ArgumentParser):
parser.add_argument(
"--monitor-revocation-notification",
action="store_true",
env_var="ACAPY_NOTIFY_REVOCATION",
env_var="ACAPY_MONITOR_REVOCATION_NOTIFICATION",
help=(
"Specifies that aca-py will emit webhooks on notification of "
"revocation received."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,8 @@ async def delete_mediation_request(request: web.BaseRequest):
session, mediation_id
)
result = mediation_record.serialize()
await mediation_record.delete_record(session)
async with context.profile.session() as session:
await mediation_record.delete_record(session)
except StorageNotFoundError as err:
raise web.HTTPNotFound(reason=err.roll_up) from err
except (BaseModelError, StorageError) as err:
Expand Down

0 comments on commit 2ea9393

Please sign in to comment.