We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5532c3e + cff40d8 commit ef99782Copy full SHA for ef99782
data_diff/tracking.py
@@ -42,7 +42,7 @@ def bool_ask_for_email() -> bool:
42
"""
43
Checks the .datadiff.toml profile file for the asked_for_email key
44
45
- Returns False immediately if --no-tracking
+ Returns False immediately if --no-tracking or not in an interactive terminal
46
47
If found, return False (already asked for email)
48
@@ -51,7 +51,8 @@ def bool_ask_for_email() -> bool:
51
Returns:
52
bool: decision on whether to prompt the user for their email
53
54
- if g_tracking_enabled:
+ console = get_console()
55
+ if g_tracking_enabled and console.is_interactive:
56
profile = _load_profile()
57
58
if "asked_for_email" not in profile:
0 commit comments