Skip to content

Commit

Permalink
fix error for unavailable stickers
Browse files Browse the repository at this point in the history
  • Loading branch information
avoonix committed Jun 29, 2024
1 parent 3f1f919 commit eb61020
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions fuzzle/src/sticker/import.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,13 +282,19 @@ async fn fetch_sticker_set_and_save_to_db(
}

for sticker in set.stickers.iter().filter(|s| s.is_raster()) {
automerge(
let result = automerge(
&sticker.file.unique_id,
database.clone(),
vector_db.clone(),
bot.clone(),
)
.await?; // TODO: this might happen too frequently
.await; // TODO: this might happen too frequently
match result {
Err(InternalError::UnexpectedNone { type_name }) => {
tracing::warn!("a {type_name} is unexpectedly none");
}
other => other?,
}
}

database.update_last_fetched(set.name.clone()).await?;
Expand Down

0 comments on commit eb61020

Please sign in to comment.