try to pass pylint, catch only the correct exception

This commit is contained in:
Jorge Schrauwen 2015-07-31 19:31:47 +00:00
parent 84e75831c0
commit 33e0f28f29

View File

@ -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