From 58b7129a23e15015262c6917a91ece749f66d7bb Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Fri, 24 Aug 2012 09:33:14 -0400 Subject: [PATCH] command:serve: wrap server in ExceptionApp regardless of SSL. Previously, only the SSL server was using ExceptionApp. --- libbe/command/serve.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libbe/command/serve.py b/libbe/command/serve.py index 3bfac0c..1206ebd 100644 --- a/libbe/command/serve.py +++ b/libbe/command/serve.py @@ -829,12 +829,12 @@ class Serve (libbe.command.Command): def _get_server(self, params, app): details = {'port':params['port']} + app = ExceptionApp(app, logger=self.logger) if params['ssl'] == True: details['protocol'] = 'HTTPS' if cherrypy == None: raise libbe.command.UserError, \ '--ssl requires the cherrypy module' - app = ExceptionApp(app, logger=self.logger) server = cherrypy.wsgiserver.CherryPyWSGIServer( (params['host'], params['port']), app) #server.throw_errors = True -- 2.26.2