mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 09:10:25 +08:00
Add a nil check on the connection before attempting to exec it
This commit is contained in:
parent
74f6894606
commit
5b11391588
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue