mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 19:32:43 +08:00
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:
@ -203,7 +203,7 @@ class ImportScripts::Base
|
|||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
ensure
|
ensure
|
||||||
connection.exec('DROP TABLE import_ids')
|
connection.exec('DROP TABLE import_ids') unless connection.nil?
|
||||||
end
|
end
|
||||||
|
|
||||||
def created_user(user)
|
def created_user(user)
|
||||||
|
Reference in New Issue
Block a user