diff --git a/src/DIRAC/WorkloadManagementSystem/Agent/SiteDirector.py b/src/DIRAC/WorkloadManagementSystem/Agent/SiteDirector.py index 84104150c11..2c775686723 100644 --- a/src/DIRAC/WorkloadManagementSystem/Agent/SiteDirector.py +++ b/src/DIRAC/WorkloadManagementSystem/Agent/SiteDirector.py @@ -1106,7 +1106,8 @@ def _writePilotScript(self, workingDirectory, pilotOptions, proxy=None, pilotExe self.log.exception("Exception during pilot modules files compression", lException=be) location = Operations().getValue("Pilot/pilotFileServer", "") - CVMFS_locations = Operations().getValue("Pilot/CVMFS_locations") + CVMFS_locations = Operations().getValue("Pilot/CVMFS_locations", []) + localPilot = pilotWrapperScript( pilotFilesCompressedEncodedDict=pilotFilesCompressedEncodedDict, pilotOptions=pilotOptions,