Skip to content

Commit

Permalink
fix(TCA): add encoding before hashing
Browse files Browse the repository at this point in the history
fix exception about missing encoding
  • Loading branch information
andresailer committed Oct 12, 2023
1 parent f48ab93 commit ec56ff7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit ec56ff7

Please sign in to comment.