👌 Improved error handling
This commit is contained in:
parent
8f019882d0
commit
c19ea3979a
2 changed files with 8 additions and 12 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue