Skip to content

Commit

Permalink
Update server.py
Browse files Browse the repository at this point in the history
Pydantic errors with a 500 when the returned object doesn't match with the spec of the response. fixes #129
  • Loading branch information
YaphetKG authored Dec 20, 2023
1 parent 025fa87 commit 35cd2d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ async def reverse_lookup(curies) -> Dict[str, Dict]:
response.raise_for_status()
response_json = response.json()
output = {
curie: []
curie: {}
for curie in curies
}
for doc in response_json["response"]["docs"]:
Expand Down

0 comments on commit 35cd2d5

Please sign in to comment.