From 5a1e5d61926dfe6cf8532c39f72f1ec13267d609 Mon Sep 17 00:00:00 2001 From: Andrea Piccinelli Date: Sun, 15 Dec 2024 22:08:01 +0100 Subject: [PATCH] hadnling of the cases still not implementing custom auth method --- src/python/WMCore/Storage/StageOutImpl.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/python/WMCore/Storage/StageOutImpl.py b/src/python/WMCore/Storage/StageOutImpl.py index c5d6f59c85..6b92d6b0b2 100644 --- a/src/python/WMCore/Storage/StageOutImpl.py +++ b/src/python/WMCore/Storage/StageOutImpl.py @@ -212,7 +212,10 @@ def __call__(self, protocol, inputPFN, targetPFN, options=None, checksums=None): # // # // Create the command to be used. # // - command = self.createStageOutCommand(sourcePFN, targetPFN, options, checksums, auth_method="TOKEN") + try: + command = self.createStageOutCommand(sourcePFN, targetPFN, options, checksums, auth_method="TOKEN") + except: + command = self.createStageOutCommand(sourcePFN, targetPFN, options, checksums) # // # // Run the command # //