From 4c260516df08c49f8c35216fc854a8201cebcfc3 Mon Sep 17 00:00:00 2001 From: Kagami Sascha Rosylight Date: Mon, 28 Mar 2022 19:13:18 +0000 Subject: [PATCH] Bug 1761633 - Silence the possible error from Get-Command r=mhentges DONTBUILD Differential Revision: https://phabricator.services.mozilla.com/D142159 --- mach.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mach.ps1 b/mach.ps1 index e42b02f38c1a..51f66aeed8eb 100644 --- a/mach.ps1 +++ b/mach.ps1 @@ -1,7 +1,7 @@ $mypath = $MyInvocation.MyCommand.Path $machpath = $mypath.substring(0, $mypath.length - 4) -if (Get-Command py) { +if (Get-Command py -ErrorAction SilentlyContinue) { $python_executable = "py" } else { $python_executable = "python"