From 6d2f0d73c0a9f8ef59a1346eb20961078dce4a71 Mon Sep 17 00:00:00 2001 From: Abderrahim Kitouni Date: Tue, 21 Jul 2020 19:44:37 +0100 Subject: [PATCH] client: retry on connection errors too --- flat-manager-client | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flat-manager-client b/flat-manager-client index 33a289d..f088dc6 100755 --- a/flat-manager-client +++ b/flat-manager-client @@ -477,7 +477,7 @@ def build_url_to_api(build_url): @retry( stop=stop_after_attempt(6), wait=wait_fixed(10), - retry=retry_if_exception_type(ApiError), + retry=(retry_if_exception_type(ApiError) | retry_if_exception_type(aiohttp.ClientConnectionError)), reraise=True, ) async def push_command(session, args):