forked from cybrespace/mastodon
Make BackupService resilient to read timeouts
If an attachment read times out, assume that the resources is inaccessible and continue the backup without it. This fixes #12280.
This commit is contained in:
parent
17d3ed59a6
commit
4cd4a2664b
|
@ -143,6 +143,7 @@ class BackupService < BaseService
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
rescue Errno::ENOENT
|
rescue Errno::ENOENT
|
||||||
|
rescue Seahorse::Client::NetworkingError
|
||||||
Rails.logger.warn "Could not backup file #{filename}: file not found"
|
Rails.logger.warn "Could not backup file #{filename}: file not found"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue