diff --git a/wakatime/main.py b/wakatime/main.py index 951eef9..733b199 100644 --- a/wakatime/main.py +++ b/wakatime/main.py @@ -228,8 +228,6 @@ def send_heartbeat(project=None, branch=None, hostname=None, stats={}, key=None, queue = Queue() queue.push(data, json.dumps(stats), plugin) log.warn(exception_data) - session_cache.delete() - return API_ERROR else: code = response.status_code if response is not None else None