Make some windows-specific not cause NameErrors
This commit is contained in:
parent
dfd67522d5
commit
cf6f550248
1 changed files with 1 additions and 1 deletions
|
@ -217,7 +217,7 @@ class Addon(object):
|
|||
try:
|
||||
shutil.copystat(src, dst)
|
||||
except OSError, why:
|
||||
if WindowsError is not None and isinstance(why, WindowsError):
|
||||
if shutil.WindowsError is not None and isinstance(why, shutil.WindowsError):
|
||||
# Copying file access times may fail on Windows
|
||||
pass
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue