add short sleep to not get empty file!

This commit is contained in:
rscmbbng 2018-12-03 05:14:59 +01:00
parent cca25d76ed
commit 5ad138ccf6

View File

@ -18,6 +18,8 @@ else:
db = sqlite3.connect('stats.db')
c = db.cursor()
time.sleep(5) #otherwise we risk grabbing an empty file
try:
r = requests.get(url)
r.raise_for_status() # in case of 404