Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions doc/source/lib/galaxy.webapps.galaxy.controllers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,6 @@ galaxy.webapps.galaxy.controllers.dataset module
:undoc-members:
:show-inheritance:

galaxy.webapps.galaxy.controllers.error module
----------------------------------------------

.. automodule:: galaxy.webapps.galaxy.controllers.error
:members:
:undoc-members:
:show-inheritance:

galaxy.webapps.galaxy.controllers.forms module
----------------------------------------------

Expand Down
4 changes: 2 additions & 2 deletions lib/galaxy/web/framework/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ def handle_request(self, request_id, path_info, environ, start_response, body_re
try:
body = method(trans, **kwargs)
except Exception as e:
body = self.handle_controller_exception(e, trans, method, **kwargs)
body = self.handle_controller_exception(e, trans, method, kwargs)
if not body:
trans.response.headers.pop("content-length", None)
raise
Expand Down Expand Up @@ -307,7 +307,7 @@ def make_body_iterable(self, trans, body):
# Worst case scenario
return [smart_str(body)]

def handle_controller_exception(self, e, trans, method, **kwargs):
def handle_controller_exception(self, e, trans, method, kwargs):
"""
Allow handling of exceptions raised in controller methods.
"""
Expand Down
2 changes: 1 addition & 1 deletion lib/galaxy/webapps/base/webapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def create_mako_template_lookup(self, galaxy_app, name):
directories=paths, module_directory=galaxy_app.config.template_cache_path, collection_size=500
)

def handle_controller_exception(self, e, trans, method, **kwargs):
def handle_controller_exception(self, e, trans, method, kwargs):
if not isinstance(e, HTTPException):
# We're still logging too much here but at least it's not logging webob.exc.HTTPFound and friends
log.debug(f"Encountered exception in controller method: {method}", exc_info=True)
Expand Down
10 changes: 0 additions & 10 deletions lib/galaxy/webapps/galaxy/controllers/error.py

This file was deleted.

Loading