#NEWLINE# def _request( self , method , * args , **kwargs ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# request_method = getattr ( self . session , method ) #NEWLINE# return request_method ( * method , ** kwargs ) #NEWLINE# #UNINDENT# except ( requests . exceptions . ConnectionError , requests . exceptions . Timeout ) as exc : #NEWLINE# #INDENT# raise exceptions . ConnectionError ( exc ) #NEWLINE# #UNINDENT# except requests . exceptions . RequestException as exc : #NEWLINE# #INDENT# raise exceptions . TransportError ( exc )