Ignore ActiveRecord::RecordInvalid in RedownloadAvatarWorker

This commit is contained in:
Jeong Arm 2023-07-26 16:23:38 +09:00
parent a4b69bec2e
commit ce81af8e0d
1 changed files with 1 additions and 0 deletions

View File

@ -16,6 +16,7 @@ class RedownloadAvatarWorker
account.reset_avatar!
account.save!
rescue ActiveRecord::RecordNotFound
rescue ActiveRecord::RecordInvalid
# Do nothing
rescue Mastodon::UnexpectedResponseError => e
response = e.response