diff options
-rw-r--r-- | config/environment.rb | 6 |
1 files changed, 4 insertions, 2 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 |