mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-12 23:01:41 +00:00
fix: add None guard for num_retries comparison in router (fixes #25889)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Yiyang Liu <37043548+ianliuy@users.noreply.github.com>
This commit is contained in:
parent
c0fc4c4234
commit
1a4989dd09
1 changed files with 1 additions and 1 deletions
|
|
@ -5768,7 +5768,7 @@ class Router:
|
|||
_metadata["max_retries"] = num_retries
|
||||
|
||||
## LOGGING
|
||||
if num_retries > 0:
|
||||
if num_retries is not None and num_retries > 0:
|
||||
kwargs = self.log_retry(kwargs=kwargs, e=original_exception)
|
||||
else:
|
||||
raise
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue