Skip to content

Commit 41296d1

Browse files
committed
Also catch calledprocesserror
1 parent 3cd2ad1 commit 41296d1

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

cmdstanpy/model.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,12 @@ def src_info(self) -> Dict[str, Any]:
292292
).stdout
293293
result = json.loads(out)
294294
return result
295-
except (ValueError, RuntimeError, OSError) as e:
295+
except (
296+
ValueError,
297+
RuntimeError,
298+
OSError,
299+
subprocess.CalledProcessError,
300+
) as e:
296301
get_logger().debug(e)
297302
return result
298303

0 commit comments

Comments
 (0)