From 8c28be10410555dddf29c357c91378ffe84db80a Mon Sep 17 00:00:00 2001 From: Michele Comitini Date: Sat, 9 Mar 2013 21:16:58 +0100 Subject: [PATCH] fixed request missing current prefix causing wrongly handled exceptions. --- NEWINSTALL | 1 - gluon/tools.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) delete mode 100644 NEWINSTALL diff --git a/NEWINSTALL b/NEWINSTALL deleted file mode 100644 index 8b137891..00000000 --- a/NEWINSTALL +++ /dev/null @@ -1 +0,0 @@ - diff --git a/gluon/tools.py b/gluon/tools.py index 2156d425..e6456f6d 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(request.is_local and traceback.format_tb(etb)) + data = '%s: %s\n' % (etype.__name__, eval) + str(current.request.is_local and traceback.format_tb(etb)) return return_error(id, code, data=data) except: etype, eval, etb = sys.exc_info()