#NEWLINE# def __str__( self ) : #NEWLINE# #INDENT# msg = super ( AuthFailed , self ) . __str__ ( ) #NEWLINE# if ( msg == 'access_denied' ) : #NEWLINE# #INDENT# return 'Authentication process was canceled' #NEWLINE# #UNINDENT# return 'Authentication failed: {0}' . format ( msg )