diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/environment.rb | 6 | ||||
-rw-r--r-- | config/test.yml | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/config/environment.rb b/config/environment.rb index 8076464a5..12501eb89 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -150,5 +150,7 @@ require 'world_foi_websites.rb' require 'alaveteli_external_command.rb' require 'quiet_opener.rb' -ExceptionNotification::Notifier.sender_address = Configuration::exception_notifications_from -ExceptionNotification::Notifier.exception_recipients = Configuration::exception_notifications_to +if !Configuration.exception_notifications_from.blank? && !Configuration.exception_notifications_to.blank? + ExceptionNotification::Notifier.sender_address = Configuration::exception_notifications_from + ExceptionNotification::Notifier.exception_recipients = Configuration::exception_notifications_to +end diff --git a/config/test.yml b/config/test.yml index ef270dcf2..565a3c4ec 100644 --- a/config/test.yml +++ b/config/test.yml @@ -122,7 +122,5 @@ HTML_TO_PDF_COMMAND: /usr/local/bin/wkhtmltopdf-amd64 EXCEPTION_NOTIFICATIONS_FROM: do-not-reply-to-this-address@example.com EXCEPTION_NOTIFICATIONS_TO: -MAX_REQUESTS_PER_USER_PER_DAY: 2 - VARNISH_HOST: varnish.localdomain SKIP_ADMIN_AUTH: true |