Skip to content

Commit

Permalink
client: retry on connection errors too
Browse files Browse the repository at this point in the history
  • Loading branch information
abderrahim committed Jul 21, 2020
1 parent 8f7ce51 commit 6d2f0d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flat-manager-client
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 6d2f0d7

Please sign in to comment.