Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

return null for any getSRP failure to fallback to ott login as backup

Abhinav1d91e26eb2a9
diff --git a/apps/photos/src/services/userService.ts b/apps/photos/src/services/userService.ts
index 5165f844b1..88c39b3a44 100644
--- a/apps/photos/src/services/userService.ts
+++ b/apps/photos/src/services/userService.ts
@@ -554,11 +554,8 @@ export const getSRPAttributes = async (
});
return (resp.data as GetSRPAttributesResponse).attributes;
} catch (e) {
- if (e.status?.toString() === ServerErrorCodes.NOT_FOUND) {
- return null;
- }
logError(e, 'failed to get SRP attributes');
- throw e;
+ return null;
}
};