From 792970061bb1d3e118b8b28a852bb2fe6ca31cb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Saugat=20Pachhai=20=28=E0=A4=B8=E0=A5=8C=E0=A4=97=E0=A4=BE?= =?UTF-8?q?=E0=A4=A4=29?= Date: Mon, 5 Aug 2024 08:29:47 +0545 Subject: [PATCH] debug --- build_bin.py | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/build_bin.py b/build_bin.py index 997996e..f28ae49 100644 --- a/build_bin.py +++ b/build_bin.py @@ -1,6 +1,6 @@ import os import pathlib -from subprocess import STDOUT, check_call, check_output +from subprocess import STDOUT, CalledProcessError, check_call, check_output path = pathlib.Path(__file__).parent.absolute() dvc = path / "dvc" / "dvc" @@ -18,13 +18,18 @@ stderr=STDOUT, ) -out = check_output( - [ - path / "dist" / "dvc" / "dvc", - "doctor", - ], - stderr=STDOUT, -).decode() +try: + out = check_output( + [ + path / "dist" / "dvc" / "dvc", + "doctor", + ], + stderr=STDOUT, + ).decode() +except CalledProcessError as exc: + out = exc.output.decode() + print(out) + raise remotes = [ "s3",