diff --git a/NEWINSTALL b/NEWINSTALL new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/NEWINSTALL @@ -0,0 +1 @@ + diff --git a/gluon/tools.py b/gluon/tools.py index e6456f6d..2156d425 100644 --- a/gluon/tools.py +++ b/gluon/tools.py @@ -4454,7 +4454,7 @@ class Service(object): except BaseException: etype, eval, etb = sys.exc_info() code = -32099 - data = '%s: %s\n' % (etype.__name__, eval) + str(current.request.is_local and traceback.format_tb(etb)) + data = '%s: %s\n' % (etype.__name__, eval) + str(request.is_local and traceback.format_tb(etb)) return return_error(id, code, data=data) except: etype, eval, etb = sys.exc_info()