clean up kwargs
This commit is contained in:
parent
66a3be703f
commit
91784f5066
1 changed files with 4 additions and 8 deletions
|
@ -455,15 +455,11 @@ def main(argv=None):
|
||||||
project_name = args.alternate_project
|
project_name = args.alternate_project
|
||||||
|
|
||||||
kwargs = vars(args)
|
kwargs = vars(args)
|
||||||
if 'project' in kwargs:
|
kwargs['project'] = project_name
|
||||||
del kwargs['project']
|
kwargs['branch'] = branch
|
||||||
|
kwargs['stats'] = stats
|
||||||
|
|
||||||
if send_heartbeat(
|
if send_heartbeat(**kwargs):
|
||||||
project=project_name,
|
|
||||||
branch=branch,
|
|
||||||
stats=stats,
|
|
||||||
**kwargs
|
|
||||||
):
|
|
||||||
queue = Queue()
|
queue = Queue()
|
||||||
while True:
|
while True:
|
||||||
heartbeat = queue.pop()
|
heartbeat = queue.pop()
|
||||||
|
|
Loading…
Reference in a new issue