mirror of https://github.com/mastodon/mastodon
Ignore ActiveRecord::RecordInvalid in RedownloadAvatarWorker
This commit is contained in:
parent
a4b69bec2e
commit
ce81af8e0d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue