diff rhodecode/controllers/admin/settings.py @ 3140:105a0374faa1 beta

admin, email test: fix test for test_email recipients
author Mads Kiilerich <madski@unity3d.com>
date Wed, 02 Jan 2013 13:56:40 +0100
parents 6104dfd35b16
children 1e7839c0930a
line wrap: on
line diff
--- a/rhodecode/controllers/admin/settings.py	Wed Jan 02 13:56:34 2013 +0100
+++ b/rhodecode/controllers/admin/settings.py	Wed Jan 02 13:56:40 2013 +0100
@@ -336,7 +336,7 @@
                 .get_email_tmpl(EmailNotificationModel.TYPE_DEFAULT,
                                 body=test_email_body)
 
-            recipients = [test_email] if [test_email] else None
+            recipients = [test_email] if test_email else None
 
             run_task(tasks.send_email, recipients, test_email_subj,
                      test_email_body, test_email_html_body)