Skip to content

Commit a7f0429

Browse files
authored
Merge pull request #89 from matyasselmeci/dlsz
Initialize dlSz to avoid NameError when transfer fails
2 parents 36c0b50 + b4728d7 commit a7f0429

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)