@ -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