From b95d9b9bd50c1be6401104f8c2e001376eac32e6 Mon Sep 17 00:00:00 2001 From: Paul Nilsson Date: Mon, 16 Dec 2024 11:31:56 +0100 Subject: [PATCH] Not allowing empty file names, possbly coming from \n in find command --- pilot/user/atlas/loopingjob_definitions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pilot/user/atlas/loopingjob_definitions.py b/pilot/user/atlas/loopingjob_definitions.py index c78f46e1..0178639d 100644 --- a/pilot/user/atlas/loopingjob_definitions.py +++ b/pilot/user/atlas/loopingjob_definitions.py @@ -61,7 +61,8 @@ def remove_unwanted_files(workdir: str, files: list[str]) -> list[str]: "memory_" in _file or "mem." in _file or "docs/" in _file or - "DBRelease-" in _file): + "DBRelease-" in _file or + _file == ""): _files.append(_file) return _files