From ba912aab563a12178838da26e1604fb21e066949 Mon Sep 17 00:00:00 2001 From: Matthew Tancik Date: Thu, 1 Dec 2022 07:43:33 -0800 Subject: [PATCH] Revert "More informative completion install error messages (#1068)" This reverts commit c2ad46d60e8a7c3e8f1cd4e41ad5656033a45e7d. --- scripts/completions/install.py | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/scripts/completions/install.py b/scripts/completions/install.py index 636ed1979..adfb76e7c 100755 --- a/scripts/completions/install.py +++ b/scripts/completions/install.py @@ -95,21 +95,13 @@ def _generate_completion( target_path = completions_dir / shell / target_name # Generate and write the new completion. - try: - new = subprocess.run( - args=args, - stdout=subprocess.PIPE, - stderr=subprocess.PIPE, - encoding="utf8", - check=True, - ).stdout - except subprocess.CalledProcessError as e: - CONSOLE.log(f":x: Completion script generation failed: {args}") - if e.stdout is not None and len(e.stdout) > 0: - CONSOLE.log(e.stdout) - if e.stderr is not None and len(e.stderr) > 0: - CONSOLE.log(e.stderr) - raise e + new = subprocess.run( + args=args, + stdout=subprocess.PIPE, + stderr=subprocess.PIPE, + encoding="utf8", + check=True, + ).stdout target_path.parent.mkdir(parents=True, exist_ok=True) if not target_path.exists():