Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
verktoy
kindnavsync
Commits
a5521fd4
Commit
a5521fd4
authored
Nov 20, 2020
by
Morten Brekkevold
Browse files
Format all code using Black
parent
91b099cb
Changes
2
Hide whitespace changes
Inline
Side-by-side
kindnavsync/errors.py
View file @
a5521fd4
...
...
@@ -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
kindnavsync/navapi.py
View file @
a5521fd4
...
...
@@ -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
,
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment