From 2174fc3becc08af685f4a06a7a476483834fac04 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Tue, 20 Jun 2017 12:26:14 -0500 Subject: [PATCH] partially fixes #1621, thanks Nico. The strip issue is a python3 error in my opinion --- gluon/restricted.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gluon/restricted.py b/gluon/restricted.py index 84c46b36..95410f5c 100644 --- a/gluon/restricted.py +++ b/gluon/restricted.py @@ -137,7 +137,7 @@ class RestrictedError(Exception): self.environment = environment if layer: try: - self.traceback = traceback.format_exc() + self.traceback = traceback.format_exc(limit=1) except: self.traceback = 'no traceback because template parsing error' try: