Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Chris Jewell
covid19uk
Commits
754663e3
Commit
754663e3
authored
Mar 24, 2021
by
Chris Jewell
Browse files
sys.sleep -> time.sleep
parent
d6dedac1
Changes
1
Hide whitespace changes
Inline
Side-by-side
covid/data/case_data.py
View file @
754663e3
"""Loads COVID-19 case data"""
import
sys
import
time
from
warnings
import
warn
import
requests
import
json
...
...
@@ -58,7 +58,7 @@ class CasesData:
return
df
except
ConnectionResetError
:
print
(
"Failed"
,
flush
=
True
)
sys
.
sleep
(
secs
*
2
**
i
)
time
.
sleep
(
secs
*
2
**
i
)
raise
ConnectionError
(
f
"Data download timed out after
{
max_tries
}
attempts"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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