summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2024-01-22 00:06:14 +0100
committeremkael <emkael@tlen.pl>2024-01-22 00:06:14 +0100
commita3a75ede6d5b1a471ae16465df48863fe579f840 (patch)
tree9ac5e6129b804a32c3a8c281a300c69f60bc7f6f
parent2caf6f63259988c1ef08aa12a852e875fb9c7af2 (diff)
bigdealx subprocess tweaks
-rw-r--r--squaredeal/__init__.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/squaredeal/__init__.py b/squaredeal/__init__.py
index b6aa7bf..a2768bb 100644
--- a/squaredeal/__init__.py
+++ b/squaredeal/__init__.py
@@ -95,7 +95,11 @@ class SquareDealPhase(object):
'-e', reserve_info,
'-p', self._output_file_name(session+1, reserve),
'-n', board_ranges[session]]
- subprocess.run(args, cwd=output_path)
+ try:
+ subprocess.run(args, cwd=output_path, capture_output=True, check=True)
+ except subprocess.CalledProcessError as ex:
+ raise SquareDealError(ex.stderr)
+
class SquareDeal(object):