From de9d730f534f42ba570d203ccea92188bf9a7d94 Mon Sep 17 00:00:00 2001 From: Diego Rey Mendez Date: Tue, 22 Aug 2023 15:03:04 +0200 Subject: [PATCH] Removes some pixel noise we're seeing --- DuckDuckGo/Configuration/ConfigurationStore.swift | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/DuckDuckGo/Configuration/ConfigurationStore.swift b/DuckDuckGo/Configuration/ConfigurationStore.swift index a47fc12739..cb1890d020 100644 --- a/DuckDuckGo/Configuration/ConfigurationStore.swift +++ b/DuckDuckGo/Configuration/ConfigurationStore.swift @@ -96,7 +96,12 @@ final class ConfigurationStore: ConfigurationStoring { } catch { guard !NSApp.isRunningUnitTests else { return nil } - Pixel.fire(.debug(event: .trackerDataCouldNotBeLoaded, error: error)) + let nserror = error as NSError + + if nserror.domain != NSCocoaErrorDomain || nserror.code != NSFileReadNoSuchFileError { + Pixel.fire(.debug(event: .trackerDataCouldNotBeLoaded, error: error)) + } + return nil } }