1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Catch ValueError as well because of El Capitan provoking a bug in python2's subprocess

Fixes #14895
This commit is contained in:
Toshio Kuratomi 2016-03-18 05:52:53 -07:00
parent a61a3e28da
commit 2ba4428424

View file

@ -275,8 +275,12 @@ class VaultEditor:
try:
r = call(['shred', tmp_path])
except OSError:
except (OSError, ValueError):
# shred is not available on this system, or some other error occured.
# ValueError caught because OS X El Capitan is raising an
# exception big enough to hit a limit in python2-2.7.11 and below.
# Symptom is ValueError: insecure pickle when shred is not
# installed there.
r = 1
if r != 0: