fix(exception_hanlder): fix the error where `request.exception` is not defined