Adds TimeoutError handling to the retryer wrapper function. This will ensure that... 27/13027/1
authorGabriel Cuba <gcuba@whitestack.com>
Tue, 28 Feb 2023 23:51:19 +0000 (18:51 -0500)
committerGabriel Cuba <gcuba@whitestack.com>
Tue, 28 Feb 2023 23:52:19 +0000 (18:52 -0500)
Change-Id: I49a0ec370986e45e8b779f361ee4d72ff5a15ef1
Signed-off-by: Gabriel Cuba <gcuba@whitestack.com>
osm_lcm/lcm_helm_conn.py

index 4d1bfb2..d1ad4c5 100644 (file)
@@ -47,7 +47,7 @@ from osm_lcm.lcm_utils import deep_get
 
 def retryer(max_wait_time_var="_initial_retry_time", delay_time_var="_retry_delay"):
     def wrapper(func):
-        retry_exceptions = ConnectionRefusedError
+        retry_exceptions = (ConnectionRefusedError, TimeoutError)
 
         @functools.wraps(func)
         async def wrapped(*args, **kwargs):