Undefined name: to --> 'to' (again)
Just like #1884 but on a different file. ``` ./src/Tools/FCFileTools.py:47:50: F821 undefined name 'to' print('Error copying', pathFrom, to, pathTo, '--skipped') ^ ./src/Tools/FCFileTools.py:86:54: F821 undefined name 'to' print('Error copying', pathFrom, to, pathTo, '--skipped') ^ ```
This commit is contained in:
@@ -44,7 +44,7 @@ def cpall(dirFrom, dirTo):
|
||||
cpfile(pathFrom, pathTo)
|
||||
fcount = fcount+1
|
||||
except:
|
||||
print('Error copying', pathFrom, to, pathTo, '--skipped')
|
||||
print('Error copying', pathFrom, 'to', pathTo, '--skipped')
|
||||
print(sys.exc_info()[0], sys.exc_info()[1])
|
||||
else:
|
||||
if verbose: print('copying dir', pathFrom, 'to', pathTo)
|
||||
@@ -83,7 +83,7 @@ def cpallWithFilter(dirFrom, dirTo,MatchList):
|
||||
cpfile(pathFrom, pathTo)
|
||||
fcount = fcount+1
|
||||
except:
|
||||
print('Error copying', pathFrom, to, pathTo, '--skipped')
|
||||
print('Error copying', pathFrom, 'to', pathTo, '--skipped')
|
||||
print(sys.exc_info()[0], sys.exc_info()[1])
|
||||
else:
|
||||
if verbose: print('copying dir', pathFrom, 'to', pathTo)
|
||||
|
||||
Reference in New Issue
Block a user