Skip to content

Commit

Permalink
do gridftp env setup within try/except (#376)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsschult authored Oct 3, 2024
1 parent bebe880 commit b465fa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iceprod/server/data/condor_transfer_plugins/gsiftp.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ def upload_file(self, url, local_file_path):
sys.exit(EXIT_FAILURE)

gridftp_plugin = GridftpPlugin()
gridftp_plugin.setup_env()

# Parse in the classads stored in the input file.
# Each ad represents a single file to be transferred.
Expand All @@ -223,6 +222,7 @@ def upload_file(self, url, local_file_path):
with open(args['outfile'], 'w') as outfile:
for ad in infile_ads:
try:
gridftp_plugin.setup_env()
if not args['upload']:
outfile_dict = gridftp_plugin.download_file(ad['Url'], ad['LocalFileName'])
else:
Expand Down

0 comments on commit b465fa5

Please sign in to comment.