Skip to content

Commit 4c7d90f

Browse files
committed
fix: catch the error
1 parent 7a2faf4 commit 4c7d90f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/DIRAC/WorkloadManagementSystem/Utilities/PilotWrapper.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,8 @@ def getPilotFilesCompressedEncodedDict(pilotFiles, proxy=None):
417417
from DIRAC.Core.Security.ProxyFile import writeChainToTemporaryFile # pylint: disable=import-error
418418

419419
retVal = writeChainToTemporaryFile(proxy)
420+
if not retVal["OK"]:
421+
raise RuntimeError("Failed to write proxy to temporary file: %s" % retVal["Message"])
420422
proxyLocation = Path(retVal["Value"])
421423
proxy_string = proxyLocation.read_text()
422424
proxyLocation.unlink()

0 commit comments

Comments
 (0)