From 8cd6928da35e8cc1cb8cec2eae80817eb198b0ea Mon Sep 17 00:00:00 2001 From: Michele Comitini Date: Sat, 9 Mar 2013 21:21:26 +0100 Subject: [PATCH] Revert "fixed request missing current prefix causing wrongly handled exceptions." This reverts commit 8c28be10410555dddf29c357c91378ffe84db80a. Removed NEWINSTALL by error. --- NEWINSTALL | 1 + gluon/tools.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 NEWINSTALL 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()