Commit c44f8f51 by Tyler Hallada Committed by GitHub

AN-8581 Add exception argument to handler404 function signature (#165)

* Add exception arg to handler404 function signature

* Use the underscore var for unused exception arg

* Make exception arg an unused keyword arg
parent bc3150bd
......@@ -12,7 +12,7 @@ def handle_internal_server_error(_request):
return _handle_error(500)
def handle_missing_resource_error(_request):
def handle_missing_resource_error(_request, exception=None): # pylint: disable=unused-argument
"""Notify the client that the requested resource could not be found."""
return _handle_error(404)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment