From e7ee99c5fbf03f2e79ba96c13552352b12e06c55 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 24 Jul 2023 10:28:35 +1000 Subject: [PATCH] Catch altered translation of 'unknown error' https://forums.ankiweb.net/t/how-to-solve-this-problem-trouble-report/32402 --- qt/aqt/errors.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qt/aqt/errors.py b/qt/aqt/errors.py index 135d4f097..47f89a631 100644 --- a/qt/aqt/errors.py +++ b/qt/aqt/errors.py @@ -56,6 +56,9 @@ def is_chromium_cert_error(error: str) -> bool: List derived with: qtwebengine-chromium% rg --no-heading --no-filename --no-line-number \ 3380365263193509176 | perl -pe 's/.*>(.*)<.*/"$1",/' | sort | uniq + + This list has been manually updated to add a different Japanese translation, as + the translations may change in different Chromium releases. Judging by error reports, we can't assume the error falls on a separate line: https://forums.ankiweb.net/t/topic/22036/ @@ -135,6 +138,7 @@ def is_chromium_cert_error(error: str) -> bool: "မသိရ အမှား", "កំហុសឆ្គងមិនស្គាល់", "不明なエラー", + "未知のエラー", "未知的錯誤", "未知错误", ):