mirror of
https://github.com/flibusta-apps/book_bot.git
synced 2025-12-06 15:35:35 +01:00
Fix
This commit is contained in:
@@ -27,7 +27,13 @@ where
|
|||||||
.await?
|
.await?
|
||||||
.error_for_status()?;
|
.error_for_status()?;
|
||||||
|
|
||||||
Ok(response.json::<T>().await.unwrap())
|
match response.json::<T>().await {
|
||||||
|
Ok(v) => Ok(v),
|
||||||
|
Err(err) => {
|
||||||
|
log::error!("Failed serialization: url={:?} err={:?}", url, err);
|
||||||
|
Err(Box::new(err))
|
||||||
|
},
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn get_book(
|
pub async fn get_book(
|
||||||
|
|||||||
Reference in New Issue
Block a user