We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d84f66 commit b1cf6f8Copy full SHA for b1cf6f8
1 file changed
stashcp.py
@@ -120,14 +120,14 @@ def getToken():
120
if 'TOKEN' in os.environ:
121
scitoken_file = os.environ['TOKEN']
122
123
+ if not scitoken_file or not os.path.exists(scitoken_file):
124
+ logging.info("Unable to find token file")
125
+ return None
126
+
127
# If the scitoken file is relative, then assume it's relative
128
# to the _CONDOR_CREDS directory.
129
if not os.path.isabs(scitoken_file) and "_CONDOR_CREDS" in os.environ:
130
os.path.join(os.environ['_CONDOR_CREDS'], scitoken_file)
-
- if not scitoken_file or not os.path.exists(scitoken_file):
- logging.info("Unable to find token file")
- return None
131
132
# Read in the JSON
133
with open(scitoken_file, 'r') as scitoken_obj:
0 commit comments