summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2012-05-10 14:32:03 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2012-05-10 14:32:03 -0400
commitac9602d72863d3655e32fca31d3b3f2c8ebe80d5 (patch)
tree30ae6148a7ad0634e90c6b3bbe36d4376ce05037
parenta5940fc6b0fcfc68dd49a629242ce6248a6b458e (diff)
downloadaskbot-ac9602d72863d3655e32fca31d3b3f2c8ebe80d5.tar.gz
askbot-ac9602d72863d3655e32fca31d3b3f2c8ebe80d5.tar.bz2
askbot-ac9602d72863d3655e32fca31d3b3f2c8ebe80d5.zip
hopefully fixed the error of email not being sent to the author of rejected post
-rw-r--r--askbot/utils/decorators.py2
-rw-r--r--askbot/views/commands.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/askbot/utils/decorators.py b/askbot/utils/decorators.py
index 940c3654..0042df8f 100644
--- a/askbot/utils/decorators.py
+++ b/askbot/utils/decorators.py
@@ -87,7 +87,7 @@ def ajax_only(view_func):
if data is None:
data = {}
except Exception, e:
- if isinstance(e, Exception):
+ if hasattr(e, 'messages'):
if len(e.messages) > 1:
message = u'<ul>' + \
u''.join(
diff --git a/askbot/views/commands.py b/askbot/views/commands.py
index 2cad834e..6938f3a6 100644
--- a/askbot/views/commands.py
+++ b/askbot/views/commands.py
@@ -110,7 +110,7 @@ def manage_inbox(request):
mail.send_mail(
subject_line = _('your post was not accepted'),
body_text = unicode(body_text),
- recipient_list = [post.author,]
+ recipient_list = [post.author.email,]
)
memo.delete()