From 105c628b7814c5489d5a7a96e095c94d26e07475 Mon Sep 17 00:00:00 2001 From: Samwel K <40166690+samwelkanda@users.noreply.github.com> Date: Wed, 13 Sep 2023 17:32:38 +0300 Subject: [PATCH] Fix bug in changes to redirect handler --- kiota_http/middleware/redirect_handler.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kiota_http/middleware/redirect_handler.py b/kiota_http/middleware/redirect_handler.py index 3a1e915..8677770 100644 --- a/kiota_http/middleware/redirect_handler.py +++ b/kiota_http/middleware/redirect_handler.py @@ -85,6 +85,8 @@ async def send( request = new_request continue response.history = self.history + break + if not retryable: exc = RedirectError(f"Too many redirects. {response.history}") _redirect_span.record_exception(exc) _redirect_span.end()