Improve error handling
This commit is contained in:
parent
42b2f3ff7b
commit
6f71e41b71
@ -39,7 +39,7 @@ fn main() {
|
|||||||
})
|
})
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
let guild_list = wynncraft::guild_list().unwrap();
|
if let Ok(guild_list) = wynncraft::guild_list() {
|
||||||
let conn = establish_connection();
|
let conn = establish_connection();
|
||||||
|
|
||||||
guild_list.into_iter().for_each(|name| {
|
guild_list.into_iter().for_each(|name| {
|
||||||
@ -62,6 +62,7 @@ fn main() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
println!("Guilds updated!");
|
println!("Guilds updated!");
|
||||||
|
}
|
||||||
|
|
||||||
server_handle.join().unwrap();
|
server_handle.join().unwrap();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user