mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Avoid AttributeError
when checking for exception types.
This commit is contained in:
parent
fd62b336dc
commit
fa4414949b
1 changed files with 5 additions and 0 deletions
|
@ -40,6 +40,11 @@ __salt__ = {
|
|||
'cmd.run': salt.modules.cmdmod._run_quiet,
|
||||
}
|
||||
|
||||
if six.PY2:
|
||||
class InvalidFileException(Exception):
|
||||
pass
|
||||
plistlib.InvalidFileException = InvalidFileException
|
||||
|
||||
|
||||
def __virtual__():
|
||||
'''
|
||||
|
|
Loading…
Add table
Reference in a new issue