Improve error handling

This commit is contained in:
Sakuhl 2018-01-25 19:13:42 +01:00
parent 42b2f3ff7b
commit 6f71e41b71

View File

@ -39,7 +39,7 @@ fn main() {
})
.unwrap();
let guild_list = wynncraft::guild_list().unwrap();
if let Ok(guild_list) = wynncraft::guild_list() {
let conn = establish_connection();
guild_list.into_iter().for_each(|name| {
@ -62,6 +62,7 @@ fn main() {
});
println!("Guilds updated!");
}
server_handle.join().unwrap();
}