Skip to content

Commit

Permalink
fix proof to list conversion
Browse files Browse the repository at this point in the history
Signed-off-by: pstlouis <[email protected]>
  • Loading branch information
PatStLouis committed Jan 13, 2025
1 parent b39fa27 commit 1967091
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/app/routers/identifiers.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ async def create_didwebvh(

# Assert proof set
proof = log_entry.pop("proof", None)
proof = proof if isinstance(proof, dict) else [proof]
proof = proof if isinstance(proof, list) else [proof]
if len(proof) != 1:
raise HTTPException(
status_code=400, detail="Expecting singular proof from controller."
Expand Down

0 comments on commit 1967091

Please sign in to comment.