diff --git a/wpiformat/wpiformat/cmakeformat.py b/wpiformat/wpiformat/cmakeformat.py index b490c70..a8e2507 100644 --- a/wpiformat/wpiformat/cmakeformat.py +++ b/wpiformat/wpiformat/cmakeformat.py @@ -15,7 +15,7 @@ def should_process_file(config_file, name): def run_batch(config_file, names): try: args = [sys.executable, "-m", "gersemi", "-i"] - returncode = subprocess.run(args + names).returncode + subprocess.run(args + names) except FileNotFoundError: print("Error: gersemi not found in PATH. Is it installed?", file=sys.stderr) return False diff --git a/wpiformat/wpiformat/pyformat.py b/wpiformat/wpiformat/pyformat.py index 7294844..010bcde 100644 --- a/wpiformat/wpiformat/pyformat.py +++ b/wpiformat/wpiformat/pyformat.py @@ -15,7 +15,7 @@ def should_process_file(config_file, name): def run_batch(config_file, names): try: args = [sys.executable, "-m", "black", "-q"] - returncode = subprocess.run(args + names).returncode + subprocess.run(args + names) except FileNotFoundError: print("Error: black not found in PATH. Is it installed?", file=sys.stderr) return False