def detail_twitter_error(twitterException):
 data = twitterException.response_data
 try:
  for m in data.get('errors', dict()):
   printNicely(yellow(m.get('message')))
 except:
  printNicely(yellow(data))

def detail_twitter_error ( twitterException ) : data = twitterException . response_data try : for m in data . get ( 'errors' , dict ( ) ) : printNicely ( yellow ( m . get ( 'message' ) ) ) except : printNicely ( yellow ( data ) )
display twitter errors nicely .