diff --git a/Download_Sophia.ps1 b/Download_Sophia.ps1 index 9b1ef7ac..93e2cee1 100644 --- a/Download_Sophia.ps1 +++ b/Download_Sophia.ps1 @@ -208,7 +208,7 @@ if (-not ("WinAPI.ForegroundWindow" -as [type])) { Add-Type @Signature } - catch [System.Management.Automation.ParameterBindingValidationException] + catch [System.Management.Automation.ParameterBindingException] { Write-Warning -Message "PowerShell 5.1 does not compile code if the username contains non-Latin characters (including emoji) and is written in lowercase."