* Catch intel GPU stats decode error

* Add Vietnamese

---------

Co-authored-by: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com>
This commit is contained in:
Nicolas Mowen 2025-06-17 13:11:19 -06:00 committed by GitHub
parent c935a76a45
commit 02f75d3b1f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 5 deletions

View File

@ -306,11 +306,14 @@ def get_intel_gpu_stats(sriov: bool) -> Optional[dict[str, str]]:
if sriov:
intel_gpu_top_command += ["-d", "sriov"]
p = sp.run(
intel_gpu_top_command,
encoding="ascii",
capture_output=True,
)
try:
p = sp.run(
intel_gpu_top_command,
encoding="ascii",
capture_output=True,
)
except UnicodeDecodeError:
return None
# timeout has a non-zero returncode when timeout is reached
if p.returncode != 124:

View File

@ -10,6 +10,7 @@ export const supportedLanguageKeys = [
"nb-NO",
"zh-CN",
"yue-Hant",
"vi",
"th",
"he",
"ru",