made missing cli tools non fatal (#37194)

* made missing cli tools non fatal

* remove bare exceptions

these shoudl not be there as they can prevent 'wanted' exits
This commit is contained in:
Brian Coca 2018-04-10 17:23:29 -04:00 committed by GitHub
parent 42912e1ac8
commit 0c2e7fd841
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 39 additions and 28 deletions

View file

@ -29,7 +29,7 @@ def get_file_content(path, default=None, strip=True):
data = default
finally:
datafile.close()
except:
except Exception:
# ignore errors as some jails/containers might have readable permissions but not allow reads to proc
# done in 2 blocks for 2.4 compat
pass