Gracefully handle mutuals 403 error

This commit is contained in:
Natsumi
2025-12-04 13:57:14 +13:00
parent 3e7b12ab2b
commit aded54a263
2 changed files with 17 additions and 13 deletions

View File

@@ -307,6 +307,9 @@ export function $throw(code, error, endpoint) {
if (endpoint?.startsWith('analysis/')) {
ignoreError = true;
}
if (endpoint.endsWith('/mutuals') && (code === 403 || code === -1)) {
ignoreError = true;
}
if (text.length && !ignoreError) {
if (AppDebug.errorNoty) {
AppDebug.errorNoty.close();