bring back toolchain #10

Merged
danmax merged 3 commits from javalsai-changes into main 2024-10-20 21:32:37 +02:00
Showing only changes of commit bcd349e36f - Show all commits

View File

@ -139,11 +139,9 @@ fn extract_img_url(html: &str) -> Result<String, &'static str> {
.find(html) .find(html)
{ {
Ok(img_url.as_str().to_string()) Ok(img_url.as_str().to_string())
} else if html.contains("503 Rate limiting") {
Err("ratelimited")
} else { } else {
if html.contains("503 Rate limiting") { Ok(String::new())
Err("ratelimited")
} else {
Ok(String::new())
}
} }
} }