From 4d124c05fa6a72bece1cf8560a3a767f139d1a3f Mon Sep 17 00:00:00 2001 From: William Casarin Date: Fri, 15 Nov 2024 10:08:46 -0800 Subject: [PATCH] remove unnecessary crash Signed-off-by: William Casarin --- src/app.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/app.rs b/src/app.rs index b99f517c..6c9f4620 100644 --- a/src/app.rs +++ b/src/app.rs @@ -223,12 +223,13 @@ fn update_damus(damus: &mut Damus, ctx: &egui::Context) { damus .subscriptions() .insert("unknownids".to_string(), SubKind::OneShot); - timeline::setup_initial_nostrdb_subs( + if let Err(err) = timeline::setup_initial_nostrdb_subs( &damus.ndb, &mut damus.note_cache, &mut damus.columns, - ) - .expect("home subscription failed"); + ) { + warn!("update_damus init: {err}"); + } } DamusState::Initialized => (),