👌 Improved error handling

This commit is contained in:
Alexander WB 2025-02-25 03:27:59 +01:00
parent 8f019882d0
commit c19ea3979a
2 changed files with 8 additions and 12 deletions

View file

@ -615,6 +615,7 @@ impl Session {
let blocklist: blocklist::Blocklist = if let Some(blocklist_url) = opts.blocklist_url {
blocklist::Blocklist::load_from_url(&blocklist_url)
.await
.inspect_err(|e| warn!("failed to read blocklist: {e}"))
.unwrap()
} else {
blocklist::Blocklist::empty()