qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 03/10] python/machine: use subprocess.run instead of subproce


From: John Snow
Subject: Re: [PATCH 03/10] python/machine: use subprocess.run instead of subprocess.Popen
Date: Fri, 14 May 2021 15:13:11 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1

On 5/14/21 10:08 AM, Wainer dos Santos Moschetta wrote:
Now it might throw a CalledProcessError given that `check=True`. Shouldn't it capture the exception and (possible) re-throw as an QEMUMachineError?

I lied to you again. The existing callers all check for failure explicitly, so in the interest of avoiding an API change, I'm just going to set check=False here.

We can improve the interface separately some other time.

--js




reply via email to

[Prev in Thread] Current Thread [Next in Thread]