diff options
Diffstat (limited to 'cherrypy/tutorial/tut10_http_errors.py')
-rw-r--r-- | cherrypy/tutorial/tut10_http_errors.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cherrypy/tutorial/tut10_http_errors.py b/cherrypy/tutorial/tut10_http_errors.py index e57ec396..f6d29cf2 100644 --- a/cherrypy/tutorial/tut10_http_errors.py +++ b/cherrypy/tutorial/tut10_http_errors.py @@ -22,7 +22,7 @@ class HTTPErrorDemo(object): def index(self): # display some links that will result in errors - tracebacks = cherrypy.config.get('show_tracebacks') + tracebacks = cherrypy.config.get('request.show_tracebacks') if tracebacks: trace = 'off' else: @@ -48,8 +48,8 @@ class HTTPErrorDemo(object): def toggleTracebacks(self): # simple function to toggle tracebacks on and off - tracebacks = cherrypy.config.get('show_tracebacks') - cherrypy.config.update({'show_tracebacks': not tracebacks}) + tracebacks = cherrypy.config.get('request.show_tracebacks') + cherrypy.config.update({'request.show_tracebacks': not tracebacks}) # redirect back to the index raise cherrypy.HTTPRedirect('/') |