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 d296ec5 commit 0a2539fCopy full SHA for 0a2539f
1 file changed
cmdstanpy/model.py
@@ -283,13 +283,10 @@ def src_info(self) -> Dict[str, Any]:
283
self.stan_file,
284
]
285
)
286
- out = subprocess.run(
287
- cmd,
288
- capture_output=True,
289
- text=True,
290
- check=True,
291
- ).stdout
292
- result = json.loads(out)
+ proc = subprocess.run(
+ cmd, capture_output=True, text=True, check=True
+ )
+ result = json.loads(proc.stdout)
293
return result
294
except (
295
ValueError,
0 commit comments