mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Handle pip/python errors in ansible-test better.
This commit is contained in:
parent
e1e79b7a74
commit
ab5dd24430
1 changed files with 5 additions and 1 deletions
|
@ -1262,7 +1262,11 @@ class EnvironmentDescription(object):
|
|||
:type command: list[str]
|
||||
:rtype: str
|
||||
"""
|
||||
stdout, stderr = raw_command(command, capture=True, cmd_verbosity=2)
|
||||
try:
|
||||
stdout, stderr = raw_command(command, capture=True, cmd_verbosity=2)
|
||||
except SubprocessError:
|
||||
return None # all failures are equal, we don't care why it failed, only that it did
|
||||
|
||||
return (stdout or '').strip() + (stderr or '').strip()
|
||||
|
||||
@staticmethod
|
||||
|
|
Loading…
Reference in a new issue