Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5df11b67 authored by Sayantan Roychowdhury's avatar Sayantan Roychowdhury
Browse files

surround Sentry initialization with try-catch

parent f4ed2e9f
Loading
Loading
Loading
Loading
+18 −14
Original line number Diff line number Diff line
@@ -38,6 +38,7 @@ object Telemetry {
                String()
            }

        try {
            SentryAndroid.init(application) { options ->
                options.dsn = sentryDsn
                options.addIntegration(
@@ -56,6 +57,9 @@ object Telemetry {
                    it.removeTag(Constants.TAG_E_VERSION)
                }
            }
        } catch (e: Exception) {
            e.printStackTrace()
        }
    }

    /**