remove project from args because we pass it separately to send_heartbeat function

This commit is contained in:
Alan Hamlett 2015-05-16 14:35:49 -07:00
parent 906237221b
commit c2a8d197bf

View file

@ -454,11 +454,15 @@ def main(argv=None):
if not project_name: if not project_name:
project_name = args.alternate_project project_name = args.alternate_project
kwargs = vars(args)
if 'project' in kwargs:
del kwargs['project']
if send_heartbeat( if send_heartbeat(
project=project_name, project=project_name,
branch=branch, branch=branch,
stats=stats, stats=stats,
**vars(args) **kwargs
): ):
queue = Queue() queue = Queue()
while True: while True: