Ignore pylint WindowsError

This commit is contained in:
Daniel A. Wozniak 2018-05-11 01:37:12 -07:00 committed by rallytime
parent 2d63682fea
commit 2429f9fe8a
No known key found for this signature in database
GPG key ID: E8F1A4B90D0DEA19

View file

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