diff options
author | multiple creatures <dev@multiple-creature.party> | 2020-02-21 22:55:47 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2020-02-21 22:55:47 -0600 |
commit | 1efc03527b7593690b8b5690a70f947aacced5d7 (patch) | |
tree | d16165b9e45280417c975a2323c3f02898d93328 /app/workers | |
parent | 0557b9a10162808e984c150f0a5f365ef6607373 (diff) |
handle `Mastodon::UnexpectedResponseError` & `HTTP::ConnectionError` when fetching media via `FetchMediaWorker`
Diffstat (limited to 'app/workers')
-rw-r--r-- | app/workers/fetch_media_worker.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/fetch_media_worker.rb b/app/workers/fetch_media_worker.rb index 416fbb0e2..6ce8b5886 100644 --- a/app/workers/fetch_media_worker.rb +++ b/app/workers/fetch_media_worker.rb @@ -19,7 +19,7 @@ class FetchMediaWorker object.file_remote_url = object.remote_url object.created_at = Time.now.utc object.save! - rescue ActiveRecord::RecordNotFound, ActiveRecord::RecordInvalid + rescue ActiveRecord::RecordNotFound, ActiveRecord::RecordInvalid, HTTP::ConnectionError, Mastodon::UnexpectedResponseError true end end |