Skip to content

Commit

Permalink
Add docstring and return type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
olaughter committed Apr 9, 2024
1 parent 0c568f4 commit f3117e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index/vespa_.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,8 @@ def _get_vespa_instance() -> Vespa:
)


def _handle_feed_error(response: VespaResponse, id: str):
def _handle_feed_error(response: VespaResponse, id: str) -> None:
"""Callback for vespa feed"""
if not response.is_successful():
raise VespaIndexError(f"Indexing Failed on document with id: {id}, body: {response.json}")

Expand Down

0 comments on commit f3117e7

Please sign in to comment.