#NEWLINE# def handle_response( self , environ , start_response , response ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# token = self . auth_server . create_token ( response ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# log . warning ( 'Failed to create token' , exc_info = sys . exc_info ( ) ) #NEWLINE# return self . handle_auth_server_exception ( environ , start_response ) #NEWLINE# #UNINDENT# start_response ( self . STATUS_OK , [ ( response . CHAP_HEADER , ( 'token:' + token ) ) ] ) #NEWLINE# return [ ]