We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a163f56 commit aa894d8Copy full SHA for aa894d8
1 file changed
config/initializers/oai_provider.rb
@@ -24,6 +24,6 @@ class TrainingProvider < OAI::Provider::Base
24
25
Rails.application.config.after_initialize do
26
TrainingProvider.source_model OAI::Provider::ActiveRecordWrapper.new(Material.where(visible: true))
27
-rescue ActiveRecord::NoDatabaseError, ActiveRecord::StatementInvalid
+rescue ActiveRecord::NoDatabaseError, ActiveRecord::StatementInvalid, ActiveRecord::ConnectionNotEstablished
28
Rails.logger.debug 'There is no database yet, so the OAI-PMH endpoint is not configured.'
29
end
0 commit comments