diff options
author | Louise Crow <louise.crow@gmail.com> | 2012-10-25 17:49:22 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2012-10-25 17:56:11 +0100 |
commit | fc5bcf9ed42599609f61cd71dcf0a01ddb58ff8b (patch) | |
tree | b7b3c959694612f1b3be625f775609bd935ffb62 | |
parent | 5cae053fa21bea192ae0db7c2e8d9d21f1e509ab (diff) |
Only set up exception notification params if they are not blank.
-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 |