Don't fail on not being able to show image

This commit is contained in:
Oystein Kristoffer Tveit 2024-10-20 19:45:31 +02:00
parent 91ab1ad771
commit c15feac958
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
1 changed files with 3 additions and 1 deletions

View File

@ -66,7 +66,9 @@ async fn main() -> anyhow::Result<()> {
}) })
.await?; .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); let addr = SocketAddr::new(resolve(&args.host).await?, args.port);
log::info!("Starting API on {}", addr); log::info!("Starting API on {}", addr);