We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7122cdc commit 3b44e21Copy full SHA for 3b44e21
tools/black_bindings.py
@@ -28,7 +28,7 @@ def transform(fn, s):
28
)
29
except subprocess.CalledProcessError as e:
30
print(f"{fn}:0: Failed to process block:\n{s}")
31
- return s
+ raise
32
33
result = result.stdout[len(prefix) :]
34
result = (result.rstrip()).split("\n")
@@ -58,6 +58,11 @@ def process_one_file(fn):
58
# Use a thread pool because most processing is inside black!
59
executor = ThreadPoolExecutor(max_workers=os.cpu_count())
60
futures = [executor.submit(process_one_file, fn) for fn in sys.argv[1:]]
61
+ status = 0
62
for f in futures:
- f.result()
63
+ try:
64
+ f.result()
65
+ except Exception as e:
66
+ status = 1
67
executor.shutdown()
68
+ raise SystemExit(status)
0 commit comments