From f3ea527db1d61f635548806927206b46a777213b Mon Sep 17 00:00:00 2001 From: Alexey Anisenkov Date: Tue, 10 Sep 2024 19:27:59 +0700 Subject: [PATCH] fixes --- pilot/api/data.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pilot/api/data.py b/pilot/api/data.py index b5b96005..23831cc6 100644 --- a/pilot/api/data.py +++ b/pilot/api/data.py @@ -633,7 +633,8 @@ def transfer(self, files: list, activity: list or str = 'default', raise_excepti code = ErrorCodes.STAGEINFAILED if self.mode == 'stage-in' else ErrorCodes.STAGEOUTFAILED # is it stage-in/out? details = str(caught_errors) + ":" + f'failed to transfer files using copytools={copytools}' self.logger.fatal(details) - raise PilotException(details, code=code) + if raise_exception: + raise PilotException(details, code=code) return files