#NEWLINE# def _clean_up_auth_token( self , runner , status ) : #NEWLINE# #INDENT# '\n        Clean up the temporary auth token for the current action.\n        ' #NEWLINE# is_async_runner = isinstance ( runner , AsyncActionRunner ) #NEWLINE# action_completed = ( status in action_constants . LIVEACTION_COMPLETED_STATES ) #NEWLINE# if ( ( not is_async_runner ) or ( is_async_runner and action_completed ) ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# self . _delete_auth_token ( runner . auth_token ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# LOG . exception ( 'Unable to clean-up auth_token.' ) #NEWLINE# #UNINDENT# return True #NEWLINE# #UNINDENT# return False