Fix BOOK-BOT-98

This commit is contained in:
2024-05-24 13:18:53 +02:00
parent 41ecf697f2
commit d3ab11cce0

View File

@@ -98,8 +98,7 @@ pub async fn download_file_by_link(
let response = CLIENT let response = CLIENT
.get(link) .get(link)
.send() .send()
.await? .await?;
.error_for_status()?;
if response.status() != StatusCode::OK { if response.status() != StatusCode::OK {
return Ok(None); return Ok(None);