diff --git a/slog.py b/slog.py index 7ec0be6..f542628 100644 --- a/slog.py +++ b/slog.py @@ -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