mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
try to pass pylint, catch only the correct exception
This commit is contained in:
parent
84e75831c0
commit
33e0f28f29
@ -41,7 +41,7 @@ def _check_pkgin():
|
||||
ppath = '{0}/bin/pkgin'.format(localbase)
|
||||
if not os.path.exists(ppath):
|
||||
return None
|
||||
except:
|
||||
except CommandExecutionError:
|
||||
return None
|
||||
return ppath
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user