\r
response['success'] = True\r
except Exception, e:\r
- import sys, traceback\r
- traceback.print_exc(file=sys.stdout)\r
+ #import sys, traceback\r
+ #traceback.print_exc(file=sys.stdout)\r
\r
if isinstance(e, CommandException):\r
response = {\r
'success': False,\r
- 'error_message': str(e)\r
+ 'error_message': e.message\r
}\r
else:\r
logging.error("%s: %s" % (func.__name__, str(e)))\r