about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorNick Schonning <nschonni@gmail.com>2023-02-20 05:01:20 -0500
committerGitHub <noreply@github.com>2023-02-20 11:01:20 +0100
commit59c8d43d94aa782848bf00f000512a04fca7c069 (patch)
tree24774d3dae3ee1d74d66f50b0f09630a0d9c9751 /app
parent62c4aecf8f3cb1e2bf1d0d1611084a3406a7adc0 (diff)
Autofix Rubocop Style/RescueStandardError (#23745)
Diffstat (limited to 'app')
-rw-r--r--app/lib/request_pool.rb2
-rw-r--r--app/services/import_service.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/lib/request_pool.rb b/app/lib/request_pool.rb
index e5899a79a..6be172286 100644
--- a/app/lib/request_pool.rb
+++ b/app/lib/request_pool.rb
@@ -64,7 +64,7 @@ class RequestPool
           retries     += 1
           retry
         end
-      rescue StandardError
+      rescue
         # If this connection raises errors of any kind, it's
         # better if it gets reaped as soon as possible
 
diff --git a/app/services/import_service.rb b/app/services/import_service.rb
index 2f48abc36..7a68e4ca3 100644
--- a/app/services/import_service.rb
+++ b/app/services/import_service.rb
@@ -114,7 +114,7 @@ class ImportService < BaseService
       status || ActivityPub::FetchRemoteStatusService.new.call(uri)
     rescue HTTP::Error, OpenSSL::SSL::SSLError, Mastodon::UnexpectedResponseError
       nil
-    rescue StandardError => e
+    rescue => e
       Rails.logger.warn "Unexpected error when importing bookmark: #{e}"
       nil
     end