Traceback obtained on Ubuntu 16.10 64 bit with python 3.5.2 current web2py master, with standard Welcome app, restricted.py modified by deleting lines 139-142, i.e. try: self.traceback = traceback.format_exc() except: self.traceback = 'no traceback because template parsing error' Unhandled exception in thread started by > Traceback (most recent call last): File "/home/nicoz/web2py-master/gluon/restricted.py", line 212, in restricted exec(ccode, environment) File "/home/nicoz/web2py-master/applications/admin/controllers/default.py:plugins", line 2003, in File "/home/nicoz/web2py-master/gluon/globals.py", line 405, in self._caller = lambda f: f() File "/home/nicoz/web2py-master/applications/admin/controllers/default.py:plugins", line 1973, in plugins TypeError: list indices must be integers or slices, not str During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/nicoz/web2py-master/gluon/main.py", line 446, in wsgibase serve_controller(request, response, session) File "/home/nicoz/web2py-master/gluon/main.py", line 179, in serve_controller page = run_controller_in(request.controller, request.function, environment) File "/home/nicoz/web2py-master/gluon/compileapp.py", line 642, in run_controller_in restricted(ccode, environment, layer=filename) File "/home/nicoz/web2py-master/gluon/restricted.py", line 226, in restricted raise RestrictedError(layer, ccode, output, environment) gluon.restricted.RestrictedError During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/nicoz/web2py-master/gluon/restricted.py", line 157, in log 'traceback': str(self.traceback), AttributeError: 'RestrictedError' object has no attribute 'traceback' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/nicoz/web2py-master/gluon/main.py", line 515, in wsgibase ticket = e.log(request) or 'unknown' File "/home/nicoz/web2py-master/gluon/restricted.py", line 167, in log logger.error(self.traceback) AttributeError: 'RestrictedError' object has no attribute 'traceback' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/nicoz/web2py-master/gluon/restricted.py", line 157, in log 'traceback': str(self.traceback), AttributeError: 'RestrictedError' object has no attribute 'traceback' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/nicoz/web2py-master/gluon/rocket.py", line 1320, in run self.run_app(conn) File "/home/nicoz/web2py-master/gluon/rocket.py", line 1821, in run_app output = self.app(environ, self.start_response) File "/home/nicoz/web2py-master/gluon/main.py", line 651, in app_with_logging ret[0] = wsgiapp(environ, responder2) File "/home/nicoz/web2py-master/gluon/main.py", line 547, in wsgibase ticket = e.log(request) or 'unrecoverable' File "/home/nicoz/web2py-master/gluon/restricted.py", line 167, in log logger.error(self.traceback) AttributeError: 'RestrictedError' object has no attribute 'traceback' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner self.run() File "/home/nicoz/web2py-master/gluon/rocket.py", line 1323, in run handled = self._handleError(*exc) File "/home/nicoz/web2py-master/gluon/rocket.py", line 1280, in _handleError tb_fmt = traceback.format_exception(typ, val, tb) File "/usr/lib/python3.5/traceback.py", line 117, in format_exception type(value), value, tb, limit=limit).format(chain=chain)) File "/usr/lib/python3.5/traceback.py", line 487, in __init__ self._load_lines() File "/usr/lib/python3.5/traceback.py", line 500, in _load_lines self.__context__._load_lines() File "/usr/lib/python3.5/traceback.py", line 500, in _load_lines self.__context__._load_lines() File "/usr/lib/python3.5/traceback.py", line 500, in _load_lines self.__context__._load_lines() File "/usr/lib/python3.5/traceback.py", line 500, in _load_lines self.__context__._load_lines() File "/usr/lib/python3.5/traceback.py", line 500, in _load_lines self.__context__._load_lines() File "/usr/lib/python3.5/traceback.py", line 498, in _load_lines frame.line File "/usr/lib/python3.5/traceback.py", line 282, in line self._line = linecache.getline(self.filename, self.lineno).strip() AttributeError: 'NoneType' object has no attribute 'strip' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3.5/threading.py", line 882, in _bootstrap self._bootstrap_inner() File "/usr/lib/python3.5/threading.py", line 924, in _bootstrap_inner (self.name, _format_exc()), file=_sys.stderr) File "/usr/lib/python3.5/traceback.py", line 163, in format_exc return "".join(format_exception(*sys.exc_info(), limit=limit, chain=chain)) File "/usr/lib/python3.5/traceback.py", line 117, in format_exception type(value), value, tb, limit=limit).format(chain=chain)) File "/usr/lib/python3.5/traceback.py", line 487, in __init__ self._load_lines() File "/usr/lib/python3.5/traceback.py", line 500, in _load_lines self.__context__._load_lines() File "/usr/lib/python3.5/traceback.py", line 500, in _load_lines self.__context__._load_lines() File "/usr/lib/python3.5/traceback.py", line 500, in _load_lines self.__context__._load_lines() File "/usr/lib/python3.5/traceback.py", line 500, in _load_lines self.__context__._load_lines() File "/usr/lib/python3.5/traceback.py", line 500, in _load_lines self.__context__._load_lines() File "/usr/lib/python3.5/traceback.py", line 500, in _load_lines self.__context__._load_lines() File "/usr/lib/python3.5/traceback.py", line 498, in _load_lines frame.line File "/usr/lib/python3.5/traceback.py", line 282, in line self._line = linecache.getline(self.filename, self.lineno).strip() AttributeError: 'NoneType' object has no attribute 'strip'