Fix tests

This commit is contained in:
Pedro Piñera 2018-04-27 16:18:18 +02:00
parent d30d1ca846
commit 3c9b8c4f06
1 changed files with 1 additions and 1 deletions

View File

@ -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 {