mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user