Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pytaboola/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import logging
import requests
import tenacity
from requests.exceptions import ReadTimeout, ConnectTimeout
from requests.exceptions import ReadTimeout, ConnectTimeout, ConnectionError

from pytaboola.errors import Unauthorized
from pytaboola.utils import parse_response
Expand Down Expand Up @@ -95,7 +95,7 @@ def token_details(self):
@tenacity.retry(
stop=tenacity.stop_after_attempt(6),
wait=tenacity.wait_exponential(multiplier=1, exp_base=2),
retry=tenacity.retry_if_exception_type((ReadTimeout, ConnectTimeout)),
retry=tenacity.retry_if_exception_type((ReadTimeout, ConnectTimeout, ConnectionError)),
before_sleep=tenacity.before_sleep_log(logger, logging.INFO),
)
def execute(self, method, uri, query_params=None,
Expand Down