Properly use allowed_fails_policy when it has fields with a value of 0 (#5604)

This commit is contained in:
Elad Segal 2024-09-10 02:35:12 +03:00 committed by GitHub
parent 15c761a56b
commit da30da9a97
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3690,7 +3690,7 @@ class Router:
exception=original_exception,
)
allowed_fails = _allowed_fails or self.allowed_fails
allowed_fails = _allowed_fails if _allowed_fails is not None else self.allowed_fails
dt = get_utc_datetime()
current_minute = dt.strftime("%H-%M")