From 01f2d945f8b9287153bd11f957c3647cf4de36e9 Mon Sep 17 00:00:00 2001 From: Dmitry Nefedov Date: Fri, 2 Feb 2024 22:17:04 +0300 Subject: [PATCH] Update Download_Sophia.ps1 --- Download_Sophia.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Download_Sophia.ps1 b/Download_Sophia.ps1 index d810ec56..9b1ef7ac 100644 --- a/Download_Sophia.ps1 +++ b/Download_Sophia.ps1 @@ -208,7 +208,7 @@ if (-not ("WinAPI.ForegroundWindow" -as [type])) { Add-Type @Signature } - catch [System.ComponentModel.Win32Exception] + catch [System.Management.Automation.ParameterBindingValidationException] { Write-Warning -Message "PowerShell 5.1 does not compile code if the username contains non-Latin characters (including emoji) and is written in lowercase."