Discard pipx error output
older pipx gives:
pipx: error: unrecognized arguments: --json
@@ -11,7 +11,7 @@ def execx(command: Union[str, List[str]]):
if isinstance(command, str):
command = command.split(' ')
- process = subprocess.Popen(command, stdout=subprocess.PIPE)
+ process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.DEVNULL)
return process.communicate()[0]
