diff options
author | W. Trevor King <wking@tremily.us> | 2012-08-24 09:33:14 -0400 |
---|---|---|
committer | W. Trevor King <wking@tremily.us> | 2012-08-24 09:33:14 -0400 |
commit | 58b7129a23e15015262c6917a91ece749f66d7bb (patch) | |
tree | 1a13fd29a4595a3e290473658f5e3f3c7729e7ab /libbe/command/serve.py | |
parent | 0cd072b9710ee964e6f449abd9265d85e02f34d2 (diff) | |
download | bugseverywhere-58b7129a23e15015262c6917a91ece749f66d7bb.tar.gz |
command:serve: wrap server in ExceptionApp regardless of SSL.
Previously, only the SSL server was using ExceptionApp.
Diffstat (limited to 'libbe/command/serve.py')
-rw-r--r-- | libbe/command/serve.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |