From 5b11391588b2cf17c4c528ef86770e93ea71ba3c Mon Sep 17 00:00:00 2001 From: Matt Farmer Date: Fri, 7 Jul 2017 11:11:43 -0400 Subject: [PATCH] Add a nil check on the connection before attempting to exec it --- script/import_scripts/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/import_scripts/base.rb b/script/import_scripts/base.rb index 616a534a5d8..5d85af80167 100644 --- a/script/import_scripts/base.rb +++ b/script/import_scripts/base.rb @@ -203,7 +203,7 @@ class ImportScripts::Base return true end ensure - connection.exec('DROP TABLE import_ids') + connection.exec('DROP TABLE import_ids') unless connection.nil? end def created_user(user)