From c15feac95880a4cc2eaddc468f535beb6e1144e3 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Sun, 20 Oct 2024 19:45:31 +0200 Subject: [PATCH] Don't fail on not being able to show image --- src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 3348766..9def7d5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -66,7 +66,9 @@ async fn main() -> anyhow::Result<()> { }) .await?; - show_grzegorz_image(mpv.clone()).await?; + if let Err(e) = show_grzegorz_image(mpv.clone()).await { + log::warn!("Could not show Grzegorz image: {}", e); + } let addr = SocketAddr::new(resolve(&args.host).await?, args.port); log::info!("Starting API on {}", addr);