Avoid over-zealous assert.

This commit is contained in:
Matthew Chen 2020-06-09 17:17:13 -03:00
parent 77c24ac83f
commit 84d6a85f35

View File

@ -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)")
}
}
}