From d46312f2cddd1387b0babc832a4c61514de6120a Mon Sep 17 00:00:00 2001 From: Allan Pereira Date: Tue, 7 Nov 2017 23:48:57 -0200 Subject: [PATCH] fix bug when sending heartbeats with hidefilenames enabled --- wakatime/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wakatime/main.py b/wakatime/main.py index 733b199..42df6fe 100644 --- a/wakatime/main.py +++ b/wakatime/main.py @@ -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 sensitive = ['dependencies', 'lines', 'lineno', 'cursorpos', 'branch'] - for key in sensitive: - if key in data: - del data[key] + for sensitiveKey in sensitive: + if sensitiveKey in data: + del data[sensitiveKey] break except re.error as ex: