From ec56ff7812903bbd1933da859f74cd2fc389877f Mon Sep 17 00:00:00 2001 From: Andre Sailer Date: Thu, 12 Oct 2023 05:49:35 +0200 Subject: [PATCH] fix(TCA): add encoding before hashing fix exception about missing encoding --- .../TransformationSystem/Agent/TransformationCleaningAgent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DIRAC/TransformationSystem/Agent/TransformationCleaningAgent.py b/src/DIRAC/TransformationSystem/Agent/TransformationCleaningAgent.py index f7e25899276..e7845fa5cb1 100644 --- a/src/DIRAC/TransformationSystem/Agent/TransformationCleaningAgent.py +++ b/src/DIRAC/TransformationSystem/Agent/TransformationCleaningAgent.py @@ -723,7 +723,7 @@ def __submitRemovalRequests(self, lfns, transID=0): """ for index, lfnList in enumerate(breakListIntoChunks(lfns, 300)): oRequest = Request() - requestName = "TCA_{transID}_{index}_{md5(repr(time.time())).hexdigest()[:5]}" + requestName = "TCA_{transID}_{index}_{md5(repr(time.time()).encode()).hexdigest()[:5]}" oRequest.RequestName = requestName oOperation = Operation() oOperation.Type = "RemoveFile"