Skip to content

Commit

Permalink
sdadad
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisburr committed Oct 16, 2024
1 parent 32b98b2 commit 60343d1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/DIRAC/TransformationSystem/Client/TransformationClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,9 @@ def getTransformationFiles(
res = rpcClient.getTransformationFilesAsJsonString(
condDict, older, newer, timeStamp, orderAttribute, offset, maxfiles, columns
)
res, _ = jdecode(res)
if not res["OK"]:
return res
res, _ = jdecode(res["Value"])
# TransformationDB.getTransformationFiles includes a "Records"/"ParameterNames"
# that we don't want to return to the client so explicitly return S_OK with the value
if not res["OK"]:
Expand Down Expand Up @@ -209,7 +211,9 @@ def getTransformationFiles(
res = rpcClient.getTransformationFilesAsJsonString(
condDict, older, newer, timeStamp, orderAttribute, None, None, columns
)
res, _ = jdecode(res)
if not res["OK"]:
return res
res, _ = jdecode(res["Value"])
if not res["OK"]:
gLogger.error(
"Error getting files for transformation %s (offset %d), %s"
Expand Down

0 comments on commit 60343d1

Please sign in to comment.