Skip to content

Commit

Permalink
add raises note to build_query docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
LGro committed May 26, 2022
1 parent 09b80a9 commit 976a4c8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apsi/clients.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ def build_query(self, oprf_response: bytes) -> bytes:
"""Build a query based on the server's response to an initial OPRF request.
This is the second step when querying for items.
Raises:
RuntimeError: If `oprf_request` was not called before.
"""
if not self.queried_items:
raise RuntimeError("You need to create an OPRF request first.")
Expand Down

0 comments on commit 976a4c8

Please sign in to comment.