]> cat aescling's git repositories - mastodon.git/commitdiff
Catch more errors in process_follows so it doesn't fail
authorblackle <isabelle@blackle-mori.com>
Thu, 6 Apr 2017 00:04:13 +0000 (20:04 -0400)
committerblackle <isabelle@blackle-mori.com>
Thu, 6 Apr 2017 00:04:13 +0000 (20:04 -0400)
app/workers/import_worker.rb

index 7cf29fb53c58d8db5f98b9693aa767856aad9f4c..d5a33cada3ccb9a96d9a4094671551a0784a5897 100644 (file)
@@ -46,7 +46,7 @@ class ImportWorker
 
       begin
         FollowService.new.call(from_account, row[0])
-      rescue Goldfinger::Error, HTTP::Error, OpenSSL::SSL::SSLError
+      rescue Mastodon::NotPermittedError, ActiveRecord::RecordNotFound, Goldfinger::Error, HTTP::Error, OpenSSL::SSL::SSLError
         next
       end
     end