#NEWLINE# def _get_error( error ) : #NEWLINE# #INDENT# error = '\n' . join ( error . split ( '\n' ) [ 1 : ] ) #NEWLINE# error = ET . fromstring ( error ) #NEWLINE# code = error [ 0 ] [ 1 ] . text #NEWLINE# message = error [ 0 ] [ 2 ] . text #NEWLINE# return ( code , message )