Ignore pylint WindowsError

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

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:
except WindowsError as exc: # pylint: disable=E060
if exc.winerror == 5:
# Access Denied
return False