From c2a8d197bf3341d874d1e0fe467dd8df52fd2497 Mon Sep 17 00:00:00 2001 From: Alan Hamlett Date: Sat, 16 May 2015 14:35:49 -0700 Subject: [PATCH] remove project from args because we pass it separately to send_heartbeat function --- wakatime/base.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wakatime/base.py b/wakatime/base.py index 00a7d1e..22085de 100644 --- a/wakatime/base.py +++ b/wakatime/base.py @@ -454,11 +454,15 @@ def main(argv=None): if not project_name: project_name = args.alternate_project + kwargs = vars(args) + if 'project' in kwargs: + del kwargs['project'] + if send_heartbeat( project=project_name, branch=branch, stats=stats, - **vars(args) + **kwargs ): queue = Queue() while True: