##// END OF EJS Templates
errorpages: convert general exceptions to error page if toolbar disabled
dan -
r193:54a17768 default
parent child Browse files
Show More
@@ -261,7 +261,10 b' def includeme(config):'
261 webob_to_pyramid_http_response(response), request)
261 webob_to_pyramid_http_response(response), request)
262 except HTTPError as e: # pyramid type exceptions
262 except HTTPError as e: # pyramid type exceptions
263 return error_handler(e, request)
263 return error_handler(e, request)
264
264 except Exception:
265 if settings.get('debugtoolbar.enabled', False):
266 raise
267 return error_handler(HTTPInternalServerError(), request)
265 return response
268 return response
266
269
267 # This is the glue which allows us to migrate in chunks. By registering the
270 # This is the glue which allows us to migrate in chunks. By registering the
General Comments 0
You need to be logged in to leave comments. Login now