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 176397cfca
commit 98dfa69475

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")