Skip to content

armgit / ente

Public Imported from GitHub
0

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

Catch uncaught exception to avoid splash screen issue

Neeraj Gupta7975de0a9a07
diff --git a/mobile/lib/utils/email_util.dart b/mobile/lib/utils/email_util.dart
index c92659e380..a17abb58fe 100644
--- a/mobile/lib/utils/email_util.dart
+++ b/mobile/lib/utils/email_util.dart
@@ -136,7 +136,11 @@ Future<void> triggerSendLogs(
attachmentPaths: [zipFilePath],
isHTML: false,
);
- await FlutterEmailSender.send(email);
+ try {
+ await FlutterEmailSender.send(email);
+ } catch (e, s) {
+ _logger.severe('email sender failed', e, s);
+ }
}
Future<String> getZippedLogsFile(BuildContext? context) async {