Add a nil check on the connection before attempting to exec it

This commit is contained in:
Matt Farmer 2017-07-07 11:11:43 -04:00
parent 74f6894606
commit 5b11391588

View File

@ -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)