From: W. Trevor King Date: Fri, 24 Aug 2012 13:33:14 +0000 (-0400) Subject: command:serve: wrap server in ExceptionApp regardless of SSL. X-Git-Tag: 1.1.0~128 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=58b7129a23e15015262c6917a91ece749f66d7bb;p=be.git command:serve: wrap server in ExceptionApp regardless of SSL. Previously, only the SSL server was using ExceptionApp. --- 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