Skip to content

Commit 6d2f0d7

Browse files
committed
client: retry on connection errors too
1 parent 8f7ce51 commit 6d2f0d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flat-manager-client

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ def build_url_to_api(build_url):
477477
@retry(
478478
stop=stop_after_attempt(6),
479479
wait=wait_fixed(10),
480-
retry=retry_if_exception_type(ApiError),
480+
retry=(retry_if_exception_type(ApiError) | retry_if_exception_type(aiohttp.ClientConnectionError)),
481481
reraise=True,
482482
)
483483
async def push_command(session, args):

0 commit comments

Comments
 (0)