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:
parent
a61a3e28da
commit
2ba4428424
1 changed files with 5 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue