X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/ca88510e4dd14206f623cababfda1e8a9daf70d4..5cced8510af03eec1438cfefcf9f44e2e7a49087:/forum/views/decorators.py diff --git a/forum/views/decorators.py b/forum/views/decorators.py index 90bb2b2..37413d2 100644 --- a/forum/views/decorators.py +++ b/forum/views/decorators.py @@ -75,13 +75,13 @@ def command(func): response['success'] = True except Exception, e: - import sys, traceback - traceback.print_exc(file=sys.stdout) + #import sys, traceback + #traceback.print_exc(file=sys.stdout) if isinstance(e, CommandException): response = { 'success': False, - 'error_message': str(e) + 'error_message': e.message } else: logging.error("%s: %s" % (func.__name__, str(e)))