#NEWLINE# def apply_view( self , request , resolver ) : #NEWLINE# #INDENT# '\n        Resolve the view, make it atomic and apply it. If an exception occurs,\n        apply the exception middleware.\n        \n        ' #NEWLINE# ( view , view_args , view_kwargs ) = self . resolve_view ( request , resolver ) #NEWLINE# try : #NEWLINE# #INDENT# return self . make_view_atomic ( view ) ( resolver , * view_args , ** view_kwargs ) #NEWLINE# #UNINDENT# except Exception as exception : #NEWLINE# #INDENT# return ( self . apply_exception_middleware ( request , resolver , exception ) or six . reraise ( * sys . exc_info ( ) ) )