<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def process_exception(self, request: AxesHttpRequest, exception):
 # pylint: disable=inconsistent-return-statements """ Exception handler that processes exceptions raised by the Axes signal handler when request fails with login. Only ``axes.exceptions.AxesSignalPermissionDenied`` exception is handled by this middleware. """


        if isinstance(exception, AxesSignalPermissionDenied):
            return get_lockout_response(request)