Skip to content

armgit / ente

Public Imported from GitHub
0

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

wrap with try catch to avoid logging fail

Abhinav1fa1dea1f689
diff --git a/packages/accounts/pages/credentials.tsx b/packages/accounts/pages/credentials.tsx
index 2eccd9e06d..12bdabf428 100644
--- a/packages/accounts/pages/credentials.tsx
+++ b/packages/accounts/pages/credentials.tsx
@@ -73,7 +73,11 @@ export default function Credentials({
setUser(user);
let key = getKey(SESSION_KEYS.ENCRYPTION_KEY);
if (!key && isElectron()) {
- key = await ElectronAPIs.getEncryptionKey();
+ try {
+ key = await ElectronAPIs.getEncryptionKey();
+ } catch (e) {
+ logError(e, 'getEncryptionKey failed');
+ }
if (key) {
await saveKeyInSessionStore(
SESSION_KEYS.ENCRYPTION_KEY,