From 3c9b8c4f06b420bd275b6fa8ea957549587a9387 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20Pin=CC=83era?= Date: Fri, 27 Apr 2018 16:18:18 +0200 Subject: [PATCH] Fix tests --- App/xcbuddykit/Sources/Utils/ErrorHandler.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/App/xcbuddykit/Sources/Utils/ErrorHandler.swift b/App/xcbuddykit/Sources/Utils/ErrorHandler.swift index 3fa3c8734..d0420c8bb 100644 --- a/App/xcbuddykit/Sources/Utils/ErrorHandler.swift +++ b/App/xcbuddykit/Sources/Utils/ErrorHandler.swift @@ -56,7 +56,7 @@ final class ErrorHandler: ErrorHandling { /// /// - Parameter printer: printer. init(printer: Printing = Printer()) { - if let sentryDsn = Bundle(for: ErrorHandler.self).infoDictionary?["SENTRY_DSN"] as? String { + if let sentryDsn = Bundle(for: ErrorHandler.self).infoDictionary?["SENTRY_DSN"] as? String, !sentryDsn.isEmpty { client = try! Client(dsn: sentryDsn) try! client?.startCrashHandler() } else {