#NEWLINE# def on_raise( self , node ) : #NEWLINE# #INDENT# 'raise statement' #NEWLINE# if ( sys . version_info [ 0 ] == 3 ) : #NEWLINE# #INDENT# excnode = node . exc #NEWLINE# msgnode = node . cause #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# excnode = node . type #NEWLINE# msgnode = node . inst #NEWLINE# #UNINDENT# out = self . run ( excnode ) #NEWLINE# msg = ' ' . join ( out . args ) #NEWLINE# msg2 = self . run ( msgnode ) #NEWLINE# if ( msg2 not in ( None , 'None' ) ) : #NEWLINE# #INDENT# msg = ( '%s: %s' % ( msg , msg2 ) ) #NEWLINE# #UNINDENT# self . raise_exception ( None , exc = out . __class__ , msg = msg , expr = '' )