From bcd8a6e9ec6da9570481529e041b05912c1aebf3 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Thu, 30 Sep 2021 11:29:44 -0500 Subject: [PATCH] debug token map handling --- jupyter_releaser/python.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jupyter_releaser/python.py b/jupyter_releaser/python.py index 248f12c0..d41a998e 100644 --- a/jupyter_releaser/python.py +++ b/jupyter_releaser/python.py @@ -74,8 +74,8 @@ def get_pypi_token(release_url): for line in pypi_token_map.splitlines(): name, _, token = line.partition(",") if name == repo_name: - twine_pwd = token - util.log("Found PYPI token") + twine_pwd = token.strip() + util.log(f"Found PYPI token in map ending in {twine_pwd[-5:]}") elif twine_pwd: util.log("Using PYPI token from PYPI_TOKEN") else: