Skip to content

Commit

Permalink
fix: mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
jaluma committed Sep 11, 2024
1 parent d67d0c0 commit 6177913
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion private_gpt/utils/ollama.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@
_JITTER = (3.0, 10.0)


@retry(is_async=False, exceptions=(ConnectError, ResponseError), tries=_MAX_RETRIES, jitter=_JITTER, logger=logger)
@retry(
is_async=False,
exceptions=(ConnectError, ResponseError),
tries=_MAX_RETRIES,
jitter=_JITTER,
logger=logger,
)
def check_connection(client: Client) -> bool:
try:
client.list()
Expand Down
2 changes: 1 addition & 1 deletion private_gpt/utils/retry.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ def retry(
jitter=jitter,
logger=logger,
)
return wrapped # type: ignore
return wrapped # type: ignore

0 comments on commit 6177913

Please sign in to comment.