From a3a75ede6d5b1a471ae16465df48863fe579f840 Mon Sep 17 00:00:00 2001 From: emkael Date: Mon, 22 Jan 2024 00:06:14 +0100 Subject: bigdealx subprocess tweaks --- squaredeal/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'squaredeal/__init__.py') 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): -- cgit v1.2.3