Updated dependencies; crash on logout to login on restart; moving back to worldsdc API

This commit is contained in:
Lukas Wölfer
2026-01-17 00:46:28 +01:00
parent 5414a1bb26
commit 31293d1807
8 changed files with 856 additions and 562 deletions

View File

@@ -10,7 +10,15 @@ pub async fn wanted_ids(bot: Bot) -> Vec<(u32, Page)> {
let p = match x {
Ok(p) => p,
Err(e) => {
tracing::error!("Could not get search result: {e}");
match e {
mwbot::Error::ApiError(a) if &a.code == "assertuserfailed" => {
tracing::error!("Bot is logged out: {a}");
panic!();
}
_ => {
tracing::error!("Could not get search result: {e}");
}
}
continue;
}
};