Updated dependencies; crash on logout to login on restart; moving back to worldsdc API
This commit is contained in:
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user