File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -891,12 +891,11 @@ def run_cmd(cmd_list: list[str], **kwargs: Any) -> subprocess.CompletedProcess:
891891 try :
892892 return subprocess .run (cmd_list , ** kwargs )
893893 except subprocess .CalledProcessError as e :
894- errors = str (e .stderr .decode (errors = "replace" ))
895- output = str (e .stdout .decode (errors = "replace" ))
896894 if not debug :
897- raise RuntimeError (f"subprocess call error { e .returncode } : { errors } ." ) from e
898- else :
899- raise RuntimeError (f"subprocess call error { e .returncode } : { errors } , { output } ." ) from e
895+ raise
896+ output = str (e .stdout .decode (errors = "replace" ))
897+ errors = str (e .stderr .decode (errors = "replace" ))
898+ raise RuntimeError (f"subprocess call error { e .returncode } : { errors } , { output } ." ) from e
900899
901900
902901def is_sqrt (num : Sequence [int ] | int ) -> bool :
You can’t perform that action at this time.
0 commit comments