Skip to content

Commit

Permalink
Swap second TimeoutError to TimeoutException as well
Browse files Browse the repository at this point in the history
  • Loading branch information
martinebl committed Sep 30, 2024
1 parent 7935a22 commit c090a4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion garak/generators/ollama.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class OllamaGeneratorChat(OllamaGenerator):

@backoff.on_exception(
backoff.fibo,
(TimeoutError, ollama.ResponseError),
(TimeoutException, ollama.ResponseError),
max_value=70,
giveup=_give_up,
)
Expand Down

0 comments on commit c090a4d

Please sign in to comment.