Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Commit 74ce644

Browse files
committed
fixing flake8 failures
1 parent 93b91e4 commit 74ce644

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

influxdb/influxdb08/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def request(self, url, method='GET', params=None, data=None,
237237
_try = 0
238238
# Try to send the request more than once by default (see #103)
239239
while retry:
240-
try:
240+
try:
241241
response = session.request(
242242
method=method,
243243
url=url,
@@ -248,8 +248,8 @@ def request(self, url, method='GET', params=None, data=None,
248248
timeout=self._timeout
249249
)
250250
break
251-
except (requests.exceptions.ConnectionError,
252-
requests.exceptions.Timeout) as e:
251+
except (requests.exceptions.ConnectionError,
252+
requests.exceptions.Timeout) as e:
253253
_try += 1
254254
if self._retries != 0:
255255
retry = _try < self._retries

influxdb/tests/client_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,8 @@ def connection_error(self, *args, **kwargs):
674674

675675
@mock.patch('requests.Session.request')
676676
def test_random_request_retry_raises(self, mock_request):
677-
"""Tests that a random number of connection errors plus one will be not handled"""
677+
"""Tests that a random number of connection errors plus one \
678+
will not be handled"""
678679

679680
class CustomMock(object):
680681
def __init__(self, retries):

0 commit comments

Comments
 (0)