FIX: Give up migrating url site setting if endpoint doesn't return data

FIX: Give up migrating url site setting if endpoint doesn’t return data.

From ba280f9cf327b31b381113443981654fff57301e Mon Sep 17 00:00:00 2001
From: Guo Xiang Tan <tgx_world@hotmail.com>
Date: Thu, 22 Nov 2018 12:16:52 +0800
Subject: [PATCH] FIX: Give up migrating url site setting if endpoint doesn't
 return data.


diff --git a/app/jobs/onceoff/migrate_url_site_settings.rb b/app/jobs/onceoff/migrate_url_site_settings.rb
index a5588d1..49b0911 100644
--- a/app/jobs/onceoff/migrate_url_site_settings.rb
+++ b/app/jobs/onceoff/migrate_url_site_settings.rb
@@ -44,6 +44,7 @@ module Jobs
                  Net::OpenTimeout,
                  Net::ReadTimeout,
                  Errno::ECONNREFUSED,
+                 EOFError,
                  SocketError,
                  Discourse::InvalidParameters => e

GitHub