Don't crash when saving persistent store fails
This commit is contained in:
parent
8c888906c9
commit
360f52d0cf
|
@ -116,7 +116,7 @@ class MainSceneDelegate: UIResponder, UIWindowSceneDelegate {
|
|||
rootVC.sceneDidEnterBackground()
|
||||
}
|
||||
|
||||
try! scene.session.mastodonController?.persistentContainer.viewContext.save()
|
||||
try? scene.session.mastodonController?.persistentContainer.viewContext.save()
|
||||
}
|
||||
|
||||
private func handlePendingCrashReport(_ report: PLCrashReport, session: UISceneSession) {
|
||||
|
|
Loading…
Reference in New Issue