Skip to content

Commit b4728d7

Browse files
committed
Initialize dlSz to avoid NameError when transfer fails
1 parent 36c0b50 commit b4728d7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

bin/stashcp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@ def doStashCpSingle(sourceFile, destination, debug=False):
199199
xrd_exit=timed_transfer(filename=sourceFile, debug=debug, destination=destination)
200200

201201
end2=int(time.time()*1000)
202+
203+
dlSz=0
202204
if os.path.exists(destination):
203205
dlSz=os.stat(destination).st_size
204206
destSpace=1

0 commit comments

Comments
 (0)