From 6c4fa5177f85f9b89bc51a5ad8493d0cbc337a83 Mon Sep 17 00:00:00 2001 From: Stefano Belforte Date: Wed, 6 Nov 2024 22:32:44 +0100 Subject: [PATCH] return "None" when proxied dir is None in DB. Fix #8768" --- src/python/CRABInterface/RESTTask.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/python/CRABInterface/RESTTask.py b/src/python/CRABInterface/RESTTask.py index f8329408ad..bb424e690d 100644 --- a/src/python/CRABInterface/RESTTask.py +++ b/src/python/CRABInterface/RESTTask.py @@ -220,7 +220,8 @@ def webdirprx(self, **kwargs): #extract /cms1425/taskname from the user webdir suffix = re.search(r"(/[^/]+/[^/]+/?)$", row.user_webdir).group(0) else: - raise ExecutionError("Webdir not set in the database. Cannot build proxied webdir") + yield "None" + return #============================================================================= # scheddObj is a dictionary composed like this (see the value of htcondorSchedds):