Skip to content

Commit 2fde1bb

Browse files
committed
Remove token printing
1 parent c82af7c commit 2fde1bb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

caltechdata_api/cli.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ def get_or_set_token(production=True):
7171
with open(token_file, "rb") as f:
7272
encrypted_token = f.read()
7373
token = decrypt_token(encrypted_token, key)
74+
print(
75+
"Using saved CaltechDATA production token."
76+
if production
77+
else "Using saved CaltechDATA test token."
78+
)
7479
return token
7580
except FileNotFoundError:
7681
while True:
@@ -422,8 +427,6 @@ def main():
422427

423428
def create_record(production):
424429
token = get_or_set_token(production)
425-
# keep_file = input("Do you want to keep your existing files? (yes/no): ").lower() == "yes"
426-
print("Using CaltechDATA token:", token)
427430
while True:
428431
choice = get_user_input(
429432
"Do you want to use metadata from an existing file or create new metadata? (existing/create): "

0 commit comments

Comments
 (0)