summaryrefslogtreecommitdiffstats
path: root/askbot/mail/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'askbot/mail/__init__.py')
-rw-r--r--askbot/mail/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/askbot/mail/__init__.py b/askbot/mail/__init__.py
index 01f206d0..2f8d7c79 100644
--- a/askbot/mail/__init__.py
+++ b/askbot/mail/__init__.py
@@ -214,11 +214,11 @@ def bounce_email(email, subject, reason = None, body_text = None):
'<p>Sorry, your question could not be posted '
'due to insufficient privileges of your user account</p>'
)
+ elif body_text:
+ error_message = body_text
else:
raise ValueError('unknown reason to bounce an email: "%s"' % reason)
- if body_text:
- error_message = string_concat(error_message, body_text)
#print 'sending email'
#print email