Skip to content

Commit d30edc6

Browse files
authored
use DO_NOT_TRACK_VALUE
1 parent f7cb073 commit d30edc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/iterative_telemetry/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ def _find_or_create_user_id():
222222

223223
# only for non-DVC packages,
224224
# write legacy file in case legacy DVC is installed later
225-
if not old.exists() and uid.lower() != "do-not-track":
225+
if not old.exists() and uid.lower() != DO_NOT_TRACK_VALUE.lower():
226226
json.dump({"user_id": uid}, old.open("w", encoding="utf8"))
227227

228228
return uid

0 commit comments

Comments
 (0)