partially fixes #1621, thanks Nico. The strip issue is a python3 error in my opinion

This commit is contained in:
mdipierro
2017-06-20 12:26:14 -05:00
parent 77a947b35c
commit 2174fc3bec

View File

@@ -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: