fixed request missing current prefix causing wrongly handled exceptions.

This commit is contained in:
Michele Comitini
2013-03-09 21:16:58 +01:00
parent 810aa8f4f3
commit 8c28be1041
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -1 +0,0 @@
+1 -1
View File
@@ -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()