Skip to content

Commit 76d1ac3

Browse files
committed
fix: copy/paste bug in receiveFile
1 parent 959489a commit 76d1ac3

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/DIRAC/Core/Tornado/Client/TornadoClient.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,15 @@ def receiveFile(self, destFile, fileId, token=""):
7474
:param args: list of arguments
7575
:returns: S_OK/S_ERROR
7676
"""
77-
rpcCall = {"method": "streamToClient", "args": encode(args)}
77+
rpcCall = {
78+
"method": "streamToClient",
79+
"args": encode(
80+
(
81+
fileId,
82+
token,
83+
)
84+
),
85+
}
7886
# Start request
7987
retVal = self._request(outputFile=destFile, **rpcCall)
8088
return retVal

0 commit comments

Comments
 (0)