Merge pull request #4959 from farmdawgnation/minor-mbox-import-fix

Add a nil check on the connection before attempting to exec it
This commit is contained in:
Guo Xiang Tan
2017-07-21 09:45:15 +09:00
committed by GitHub

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)