Merge pull request #106 from allanpereira/master
Fix bug when sending heartbeats with hidefilenames enabled
This commit is contained in:
commit
584d5b78c3
1 changed files with 3 additions and 3 deletions
|
@ -107,9 +107,9 @@ def send_heartbeat(project=None, branch=None, hostname=None, stats={}, key=None,
|
||||||
|
|
||||||
# also delete any sensitive info when hiding file names
|
# also delete any sensitive info when hiding file names
|
||||||
sensitive = ['dependencies', 'lines', 'lineno', 'cursorpos', 'branch']
|
sensitive = ['dependencies', 'lines', 'lineno', 'cursorpos', 'branch']
|
||||||
for key in sensitive:
|
for sensitiveKey in sensitive:
|
||||||
if key in data:
|
if sensitiveKey in data:
|
||||||
del data[key]
|
del data[sensitiveKey]
|
||||||
|
|
||||||
break
|
break
|
||||||
except re.error as ex:
|
except re.error as ex:
|
||||||
|
|
Loading…
Reference in a new issue