From 84d6a85f35fc70c84555cb772d1f6bbebdaf0199 Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Tue, 9 Jun 2020 17:17:13 -0300 Subject: [PATCH] Avoid over-zealous assert. --- SignalServiceKit/src/Util/Profiles/ProfileFetcherJob.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/SignalServiceKit/src/Util/Profiles/ProfileFetcherJob.swift b/SignalServiceKit/src/Util/Profiles/ProfileFetcherJob.swift index 5149f0937f..b0632a5db5 100644 --- a/SignalServiceKit/src/Util/Profiles/ProfileFetcherJob.swift +++ b/SignalServiceKit/src/Util/Profiles/ProfileFetcherJob.swift @@ -152,7 +152,11 @@ public class ProfileFetcherJob: NSObject { firstly { ProfileFetcherJob(subject: subject, options: options).runAsPromise() }.catch { error in - owsFailDebug("Error: \(error)") + if error.isNetworkFailureOrTimeout { + Logger.warn("Error: \(error)") + } else { + owsFailDebug("Error: \(error)") + } } }