From 110f84025d83ac1a4a3c2b50bbd9ea2f820450da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Fri, 17 May 2024 05:04:58 +0200 Subject: [PATCH] Mute pylint false positive The case where process_id and domain_id are not set do result in earlier return (due to no_exec=True). --- qrexec/tools/qrexec_policy_exec.py | 1 + 1 file changed, 1 insertion(+) diff --git a/qrexec/tools/qrexec_policy_exec.py b/qrexec/tools/qrexec_policy_exec.py index cbd6dcf0..807c1408 100644 --- a/qrexec/tools/qrexec_policy_exec.py +++ b/qrexec/tools/qrexec_policy_exec.py @@ -293,6 +293,7 @@ def get_result(args: Optional[List[str]]) -> Union[str, int]: "admin.vm.CreateDisposable") .decode("ascii", "strict")) utils.qubesd_call(target, "admin.vm.Start") + # pylint: disable=possibly-used-before-assignment return subprocess.call(( QREXEC_CLIENT, "-EWkd" if dispvm else "-Ed",