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
.get(link)
.send()
.await?
.error_for_status()?;
.await?;
if response.status() != StatusCode::OK {
return Ok(None);