Skip to content

Commit

Permalink
fix(tailsfile): generic tails file upload
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Burdett <burdettadam@gmail.com>
  • Loading branch information
burdettadam committed May 19, 2023
1 parent 57d1e4b commit d5135c4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions aries_cloudagent/anoncreds/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,11 +477,7 @@ async def upload_tails_file(request: web.BaseRequest):
except StorageNotFoundError as err: # TODO: update error
raise web.HTTPNotFound(reason=err.roll_up) from err
try:
await issuer.upload_tails_file(
rev_reg_def.value.tails_hash,
rev_reg_def.cred_def_id,
rev_reg_def.value.tails_location,
)
await issuer.upload_tails_file(rev_reg_def)
except AnonCredsIssuerError as e:
raise web.HTTPInternalServerError(reason=str(e)) from e

Expand Down

0 comments on commit d5135c4

Please sign in to comment.