diff options
-rw-r--r-- | askbot/utils/decorators.py | 2 | ||||
-rw-r--r-- | askbot/views/commands.py | 2 |
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() |