From ac9602d72863d3655e32fca31d3b3f2c8ebe80d5 Mon Sep 17 00:00:00 2001 From: Evgeny Fadeev Date: Thu, 10 May 2012 14:32:03 -0400 Subject: hopefully fixed the error of email not being sent to the author of rejected post --- askbot/utils/decorators.py | 2 +- 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'