]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/views/decorators.py
updated to a new base template and new replacements for easy styling
[osqa.git] / forum / views / decorators.py
index 90bb2b2a89820423bb988f1efb8fcda580001558..37413d29e6872039ef10830ef3746b7b900b1ea9 100644 (file)
@@ -75,13 +75,13 @@ def command(func):
 \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