allow graceful 404s (#2211)

This commit is contained in:
pablodanswer 2024-08-22 10:00:20 -07:00 committed by GitHub
parent 1a9e5da7c0
commit 27e094d2ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -61,7 +61,7 @@ export async function fetchSettingsSS(): Promise<CombinedSettings | null> {
let enterpriseSettings: EnterpriseSettings | null = null;
if (tasks.length > 1) {
if (!results[1].ok) {
if (results[1].status !== 403) {
if (results[1].status !== 403 && results[1].status !== 404) {
throw new Error(
`fetchEnterpriseSettingsSS failed: status=${results[1].status} body=${await results[1].text()}`
);