#NEWLINE# def detail_twitter_error( twitterException ) : #NEWLINE# #INDENT# '\n    Display Twitter Errors nicely\n    ' #NEWLINE# data = twitterException . response_data #NEWLINE# try : #NEWLINE# #INDENT# for m in data . get ( 'errors' , dict ( ) ) : #NEWLINE# #INDENT# printNicely ( yellow ( m . get ( 'message' ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# except : #NEWLINE# #INDENT# printNicely ( yellow ( m ) )