use ignore-undefined-variable

This commit is contained in:
Daniel A. Wozniak 2018-05-14 08:26:01 -07:00
parent 58911d510a
commit 3235ac08cb
No known key found for this signature in database
GPG Key ID: 166B9D2C06C82D61
2 changed files with 5 additions and 1 deletions

4
test Normal file
View File

@ -0,0 +1,4 @@
a
b
c

View File

@ -55,7 +55,7 @@ def can_runas():
salt.utils.win_runas.run_as(
'cmd.exe /c echo 1', 'noexistuser', 'n0existp4ss',
)
except WindowsError as exc: # pylint: disable=E060
except WindowsError as exc: # pylint: disable=undefined-variable
if exc.winerror == 5:
# Access Denied
return False