Commit a5521fd4 authored by Morten Brekkevold's avatar Morten Brekkevold
Browse files

Format all code using Black

parent 91b099cb
......@@ -25,10 +25,11 @@ def retry_on_timeout(retries=3, delay=0):
try:
return func(*args, **kwargs)
except TimeoutError:
if attempt == retries-1:
if attempt == retries - 1:
raise
elif delay:
time.sleep(delay)
return wrapper
return inner_function
......@@ -6,7 +6,9 @@ from requests.exceptions import ReadTimeout
from simple_rest_client.api import API
from simple_rest_client.resource import Resource
from simple_rest_client.exceptions import (
NotFoundError, ClientError, ClientConnectionError
NotFoundError,
ClientError,
ClientConnectionError,
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment